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, {
|
onEditButtonClicked: openPopup(editCommunityPopup, {
|
||||||
store: root.store,
|
store: root.store,
|
||||||
community: root.community
|
community: root.community,
|
||||||
|
onSave: root.close
|
||||||
})
|
})
|
||||||
onTransferOwnershipButtonClicked: openPopup(transferOwnershiproot, {
|
onTransferOwnershipButtonClicked: openPopup(transferOwnershiproot, {
|
||||||
privateKey: root.store.exportCommunity(),
|
privateKey: root.store.exportCommunity(),
|
||||||
|
|
|
@ -21,6 +21,7 @@ StatusModal {
|
||||||
property var store
|
property var store
|
||||||
property bool isEdit: false
|
property bool isEdit: false
|
||||||
property QtObject community: popup.store.chatsModelInst.communities.activeCommunity
|
property QtObject community: popup.store.chatsModelInst.communities.activeCommunity
|
||||||
|
property var onSave: () => {}
|
||||||
readonly property int maxCommunityNameLength: 30
|
readonly property int maxCommunityNameLength: 30
|
||||||
readonly property int maxCommunityDescLength: 140
|
readonly property int maxCommunityDescLength: 140
|
||||||
readonly property var communityColorValidator: Utils.Validate.NoEmpty
|
readonly property var communityColorValidator: Utils.Validate.NoEmpty
|
||||||
|
@ -438,7 +439,7 @@ StatusModal {
|
||||||
creatingError.text = error.error
|
creatingError.text = error.error
|
||||||
return creatingError.open()
|
return creatingError.open()
|
||||||
}
|
}
|
||||||
|
popup.onSave()
|
||||||
popup.close()
|
popup.close()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue