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:
parent
4aaae242b5
commit
8d335ab210
|
@ -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) {
|
||||
|
|
|
@ -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)
|
||||
})
|
||||
})
|
||||
})
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue