fix[Shared Addresses] Can't edit shared address while the join request is pending
- disallow changing the Shared addresses while our request to join community is still pending Fixes #14292
This commit is contained in:
parent
50c2d33f64
commit
b84c1f20df
|
@ -122,9 +122,7 @@ StatusListView {
|
|||
text: qsTr("Edit Shared Addresses")
|
||||
icon.name: "wallet"
|
||||
enabled: {
|
||||
if (listItem.isOwner)
|
||||
return false
|
||||
if (listItem.isSpectator && !listItem.isInvitationPending)
|
||||
if (listItem.isOwner || listItem.isSpectator)
|
||||
return false
|
||||
return true
|
||||
}
|
||||
|
|
|
@ -606,7 +606,6 @@ Item {
|
|||
StatusAction {
|
||||
text: qsTr("Invite People")
|
||||
icon.name: "share-ios"
|
||||
enabled: model.canManageUsers
|
||||
objectName: "invitePeople"
|
||||
onTriggered: {
|
||||
popups.openInviteFriendsToCommunityPopup(model,
|
||||
|
@ -645,9 +644,7 @@ Item {
|
|||
text: qsTr("Edit Shared Addresses")
|
||||
icon.name: "wallet"
|
||||
enabled: {
|
||||
if (model.memberRole === Constants.memberRole.owner)
|
||||
return false
|
||||
if (communityContextMenu.isSpectator && !appMain.rootStore.isMyCommunityRequestPending(model.id))
|
||||
if (model.memberRole === Constants.memberRole.owner || communityContextMenu.isSpectator)
|
||||
return false
|
||||
return true
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue