Skip to content

Commit

Permalink
fix: mitigate permissions stuck in pending on control node promotion
Browse files Browse the repository at this point in the history
This PR fixes #14023

UI does NOT allow promoting to control node is no Owner token is present
  • Loading branch information
kounkou committed May 8, 2024
1 parent 9ca5fb7 commit bdb4d3f
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ Control {

// Community transfer ownership related props:
required property bool isPendingOwnershipRequest
required property bool isOwnerTokenPresent

signal exportControlNodeClicked
signal importControlNodeClicked
Expand All @@ -45,6 +46,7 @@ Control {
id: mainGrid
columnSpacing: 16
rowSpacing: 16
visible: root.isOwnerTokenPresent

StatusRoundIcon {
id: icon
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -198,6 +198,7 @@ StackLayout {
communityColor: root.color
isControlNode: root.isControlNode
isPendingOwnershipRequest: root.isPendingOwnershipRequest
isOwnerTokenPresent: isControlNode || !!root.ownerToken && root.ownerToken.deployState === Constants.ContractTransactionStatus.Completed

onExportControlNodeClicked:{
if(!!root.ownerToken && root.ownerToken.deployState === Constants.ContractTransactionStatus.Completed) {
Expand All @@ -208,8 +209,7 @@ StackLayout {
}
onImportControlNodeClicked: root.importControlNodeClicked()
onFinaliseOwnershipTransferClicked: root.finaliseOwnershipClicked()
//TODO update once the domain changes
onLearnMoreClicked: Global.openLink(Constants.statusHelpLinkPrefix + "status-communities/about-the-control-node-in-status-communities")
onLearnMoreClicked: Global.openLink(Constants.statusHelpLinkPrefix + "communities/about-the-control-node-in-status-communities")
}
}

Expand Down

0 comments on commit bdb4d3f

Please sign in to comment.