fix(Communities): don't render invite button for non admins

This commit is contained in:
Pascal Precht 2021-04-21 13:49:16 +02:00 committed by Iuri Matias
parent 973830349d
commit 5d34147956
1 changed files with 3 additions and 0 deletions

View File

@ -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 {