fix: RPC method invocation as soon as Import Community popup was opened
This commit is contained in:
parent
23cd46e831
commit
cae7184d3f
|
@ -16,6 +16,7 @@ StatusModal {
|
||||||
width: 400
|
width: 400
|
||||||
height: 400
|
height: 400
|
||||||
|
|
||||||
|
property var store
|
||||||
property string error: ""
|
property string error: ""
|
||||||
property string keyValidationError: ""
|
property string keyValidationError: ""
|
||||||
property string communityKey: ""
|
property string communityKey: ""
|
||||||
|
@ -81,6 +82,8 @@ StatusModal {
|
||||||
communityKey = "0x" + communityKey;
|
communityKey = "0x" + communityKey;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
root.error = root.store.chatsModelInst.communities.importCommunity(communityKey, Utils.uuid())
|
||||||
if (!!root.error) {
|
if (!!root.error) {
|
||||||
creatingError.text = error;
|
creatingError.text = error;
|
||||||
return creatingError.open();
|
return creatingError.open();
|
||||||
|
|
|
@ -349,7 +349,7 @@ Item {
|
||||||
id: importCommunitiesPopupComponent
|
id: importCommunitiesPopupComponent
|
||||||
AccessExistingCommunityPopup {
|
AccessExistingCommunityPopup {
|
||||||
anchors.centerIn: parent
|
anchors.centerIn: parent
|
||||||
error: root.store.chatsModelInst.communities.importCommunity(communityKey, Utils.uuid())
|
store: root.store
|
||||||
onClosed: {
|
onClosed: {
|
||||||
destroy()
|
destroy()
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue