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:
Lukáš Tinkl 2024-04-08 13:35:12 +02:00 committed by Lukáš Tinkl
parent 50c2d33f64
commit b84c1f20df
2 changed files with 2 additions and 7 deletions

View File

@ -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
}

View File

@ -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
}