fix(@desktop/communities): Set up isTokenMasterOwner flag correctly in UI

Fix #11276
This commit is contained in:
Michal Iskierko 2023-08-14 10:32:10 +02:00 committed by Michał Iskierko
parent 197c211fbc
commit a7b5ab30a0
2 changed files with 3 additions and 2 deletions

View File

@ -39,6 +39,7 @@ StatusSectionLayout {
readonly property bool isOwner: community.memberRole === Constants.memberRole.owner
readonly property bool isAdmin: isOwner || community.memberRole === Constants.memberRole.admin
readonly property bool isTokenMasterOwner: community.memberRole === Constants.memberRole.tokenMaster
readonly property bool isControlNode: community.isControlNode
readonly property string filteredSelectedTags: {
@ -338,7 +339,7 @@ StatusSectionLayout {
// User profile props
isOwner: root.isOwner
isAdmin: root.isAdmin
isTokenMasterOwner: false // TODO: Backend
isTokenMasterOwner: root.isTokenMasterOwner
// Owner and TMaster properties
isOwnerTokenDeployed: tokensModelChangesTracker.isOwnerTokenDeployed

View File

@ -403,7 +403,7 @@ QtObject {
readonly property int manageUsers: 2
readonly property int moderateContent: 3
readonly property int admin: 4
readonly property int tokenMaster: 5 // TODO no real backend for this yet
readonly property int tokenMaster: 5
}
readonly property QtObject permissionType: QtObject{