mirror of
https://github.com/status-im/status-desktop.git
synced 2025-01-12 15:24:39 +00:00
fix(@desktop/communities): Close popup when edit is successful
fixes #4126 When saving the communities all the popup are closed
This commit is contained in:
parent
2039748072
commit
0b1538c805
@ -65,7 +65,8 @@ StatusModal {
|
||||
}
|
||||
onEditButtonClicked: openPopup(editCommunityPopup, {
|
||||
store: root.store,
|
||||
community: root.community
|
||||
community: root.community,
|
||||
onSave: root.close
|
||||
})
|
||||
onTransferOwnershipButtonClicked: openPopup(transferOwnershiproot, {
|
||||
privateKey: root.store.exportCommunity(),
|
||||
|
@ -21,6 +21,7 @@ StatusModal {
|
||||
property var store
|
||||
property bool isEdit: false
|
||||
property QtObject community: popup.store.chatsModelInst.communities.activeCommunity
|
||||
property var onSave: () => {}
|
||||
readonly property int maxCommunityNameLength: 30
|
||||
readonly property int maxCommunityDescLength: 140
|
||||
readonly property var communityColorValidator: Utils.Validate.NoEmpty
|
||||
@ -438,7 +439,7 @@ StatusModal {
|
||||
creatingError.text = error.error
|
||||
return creatingError.open()
|
||||
}
|
||||
|
||||
popup.onSave()
|
||||
popup.close()
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user