feat(ExportControlNode): Connect Export Control Node popup to backend

Connect `onDeletePrivateKey` to backend.
Depends on https://github.com/status-im/status-desktop/pull/11640
This commit is contained in:
Alex Jbanca 2023-07-24 12:14:25 +03:00 committed by Alex Jbanca
parent 4aaae242b5
commit 8d335ab210
2 changed files with 6 additions and 4 deletions

View File

@ -620,6 +620,10 @@ QtObject {
chatCommunitySectionModule.authenticateWithCallback()
}
function removePrivateKey(communityId) {
root.communitiesModuleInst.removePrivateKey(communityId)
}
readonly property Connections communitiesModuleConnections: Connections {
target: communitiesModuleInst
function onImportingCommunityStateChanged(communityId, state, errorMsg) {

View File

@ -214,11 +214,9 @@ StatusSectionLayout {
return
Global.openExportControlNodePopup(root.community.name, root.chatCommunitySectionModule.exportCommunity(root.community.id), (popup) => {
//TODO: connect to backend
// Delete private key and remove control node status
popup.onDeletePrivateKey.connect(() => {
console.log("Delete private key")
})
root.rootStore.removePrivateKey(root.community.id)
})
})
})
}