From 5d34147956dd6c4a161084afb78016d9d1fa59b1 Mon Sep 17 00:00:00 2001 From: Pascal Precht Date: Wed, 21 Apr 2021 13:49:16 +0200 Subject: [PATCH] fix(Communities): don't render invite button for non admins --- .../CommunityComponents/CommunityProfilePopupMembersList.qml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/ui/app/AppLayouts/Chat/CommunityComponents/CommunityProfilePopupMembersList.qml b/ui/app/AppLayouts/Chat/CommunityComponents/CommunityProfilePopupMembersList.qml index f610a4e6f4..2e7195569f 100644 --- a/ui/app/AppLayouts/Chat/CommunityComponents/CommunityProfilePopupMembersList.qml +++ b/ui/app/AppLayouts/Chat/CommunityComponents/CommunityProfilePopupMembersList.qml @@ -16,12 +16,14 @@ Item { CommunityPopupButton { id: inviteBtn + visible: isAdmin //% "Invite People" label: qsTrId("invite-people") width: parent.width type: globalSettings.theme === Universal.Dark ? "secondary" : "primary" iconName: "invite" onClicked: stack.push(inviteFriendsView) + height: visible ? 64 : 0 } Separator { @@ -32,6 +34,7 @@ Item { anchors.topMargin: Style.current.smallPadding anchors.leftMargin: -Style.current.padding anchors.rightMargin: -Style.current.padding + visible: inviteBtn.visible } StatusSettingsLineButton {