fix: fix users being able to see admin popup

Fixes #1976
This commit is contained in:
Jonathan Rainville 2021-03-04 11:12:04 -05:00 committed by Iuri Matias
parent 81bb7fcc65
commit 4a1c497a08
1 changed files with 3 additions and 0 deletions

View File

@ -24,6 +24,7 @@ Button {
height: 40 height: 40
source: chatsModel.communities.activeCommunity.thumbnailImage source: chatsModel.communities.activeCommunity.thumbnailImage
anchors.verticalCenter: parent.verticalCenter anchors.verticalCenter: parent.verticalCenter
noHover: true
} }
StyledText { StyledText {
@ -51,6 +52,8 @@ Button {
MouseArea { MouseArea {
id: mouseAreaBtn id: mouseAreaBtn
enabled: chatsModel.communities.activeCommunity.admin
visible: enabled
cursorShape: Qt.PointingHandCursor cursorShape: Qt.PointingHandCursor
anchors.fill: parent anchors.fill: parent
onPressed: communityProfilePopup.open(); onPressed: communityProfilePopup.open();