fix(@desktop/community): Only admin can open community settings
Fix #7379
This commit is contained in:
parent
b70a1c3a45
commit
680dd39c76
|
@ -58,7 +58,7 @@ Item {
|
||||||
asset.name: communityData.image
|
asset.name: communityData.image
|
||||||
asset.color: communityData.color
|
asset.color: communityData.color
|
||||||
asset.isImage: true
|
asset.isImage: true
|
||||||
onClicked: root.infoButtonClicked()
|
onClicked: if (communityData.amISectionAdmin) { root.infoButtonClicked() }
|
||||||
anchors.top: parent.top
|
anchors.top: parent.top
|
||||||
anchors.topMargin: Style.current.smallPadding
|
anchors.topMargin: Style.current.smallPadding
|
||||||
anchors.left: parent.left
|
anchors.left: parent.left
|
||||||
|
@ -66,6 +66,7 @@ Item {
|
||||||
anchors.right: (implicitWidth > parent.width - 50) ? adHocChatButton.left : undefined
|
anchors.right: (implicitWidth > parent.width - 50) ? adHocChatButton.left : undefined
|
||||||
anchors.rightMargin: Style.current.halfPadding
|
anchors.rightMargin: Style.current.halfPadding
|
||||||
type: StatusChatInfoButton.Type.OneToOneChat
|
type: StatusChatInfoButton.Type.OneToOneChat
|
||||||
|
hoverEnabled: communityData.amISectionAdmin
|
||||||
}
|
}
|
||||||
|
|
||||||
StatusIconTabButton {
|
StatusIconTabButton {
|
||||||
|
|
Loading…
Reference in New Issue