fix(@desktop/communities): Set up isTokenMasterOwner flag correctly in UI
Fix #11276
This commit is contained in:
parent
197c211fbc
commit
a7b5ab30a0
|
@ -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
|
||||
|
|
|
@ -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{
|
||||
|
|
Loading…
Reference in New Issue