fix: don't cause a wrong redirect when performing community admin

actions

Fixes #11146
This commit is contained in:
Pascal Precht 2023-06-26 14:07:49 +02:00 committed by r4bbit
parent 068449c04c
commit 04183a6271
1 changed files with 4 additions and 4 deletions

View File

@ -39,8 +39,8 @@ StatusSectionLayout {
{id: Constants.CommunitySettingsSections.Members, name: qsTr("Members"), icon: "group-chat", enabled: true, },
{id: Constants.CommunitySettingsSections.Permissions, name: qsTr("Permissions"), icon: "objects", enabled: true},
{id: Constants.CommunitySettingsSections.MintTokens, name: qsTr("Mint Tokens"), icon: "token", enabled: root.community.memberRole === Constants.memberRole.owner},
{id: Constants.CommunitySettingsSections.Airdrops, name: qsTr("Airdrops"), icon: "airdrop", enabled: root.community.memberRole === Constants.memberRole.owner}]
{id: Constants.CommunitySettingsSections.MintTokens, name: qsTr("Mint Tokens"), icon: "token", enabled: root.isOwner},
{id: Constants.CommunitySettingsSections.Airdrops, name: qsTr("Airdrops"), icon: "airdrop", enabled: root.isOwner}]
// TODO: Next community settings options:
// {name: qsTr("Token sales"), icon: "token-sale"},
@ -51,8 +51,8 @@ StatusSectionLayout {
property bool hasAddedContacts: false
property var transactionStore: TransactionStore {}
property bool isAdmin: community.memberRole === Constants.memberRole.owner ||
community.memberRole === Constants.memberRole.admin
readonly property bool isOwner: community.memberRole === Constants.memberRole.owner
readonly property bool isAdmin: isOwner || community.memberRole === Constants.memberRole.admin
readonly property string filteredSelectedTags: {
var tagsArray = []