fix(Communities): don't render invite button for non admins
This commit is contained in:
parent
973830349d
commit
5d34147956
|
@ -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 {
|
||||
|
|
Loading…
Reference in New Issue