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()
|
chatCommunitySectionModule.authenticateWithCallback()
|
||||||
}
|
}
|
||||||
|
|
||||||
|
function removePrivateKey(communityId) {
|
||||||
|
root.communitiesModuleInst.removePrivateKey(communityId)
|
||||||
|
}
|
||||||
|
|
||||||
readonly property Connections communitiesModuleConnections: Connections {
|
readonly property Connections communitiesModuleConnections: Connections {
|
||||||
target: communitiesModuleInst
|
target: communitiesModuleInst
|
||||||
function onImportingCommunityStateChanged(communityId, state, errorMsg) {
|
function onImportingCommunityStateChanged(communityId, state, errorMsg) {
|
||||||
|
|
|
@ -214,10 +214,8 @@ StatusSectionLayout {
|
||||||
return
|
return
|
||||||
|
|
||||||
Global.openExportControlNodePopup(root.community.name, root.chatCommunitySectionModule.exportCommunity(root.community.id), (popup) => {
|
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(() => {
|
popup.onDeletePrivateKey.connect(() => {
|
||||||
console.log("Delete private key")
|
root.rootStore.removePrivateKey(root.community.id)
|
||||||
})
|
})
|
||||||
})
|
})
|
||||||
})
|
})
|
||||||
|
|
Loading…
Reference in New Issue