diff --git a/ui/app/AppLayouts/Chat/stores/RootStore.qml b/ui/app/AppLayouts/Chat/stores/RootStore.qml index 742d5639b1..4090de1f19 100644 --- a/ui/app/AppLayouts/Chat/stores/RootStore.qml +++ b/ui/app/AppLayouts/Chat/stores/RootStore.qml @@ -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) { diff --git a/ui/app/AppLayouts/Communities/views/CommunitySettingsView.qml b/ui/app/AppLayouts/Communities/views/CommunitySettingsView.qml index 51f8f8d40d..bf4ccf65be 100644 --- a/ui/app/AppLayouts/Communities/views/CommunitySettingsView.qml +++ b/ui/app/AppLayouts/Communities/views/CommunitySettingsView.qml @@ -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) + }) }) }) }