fix(@desktop/community): make backup community key field readonly

fixes: #6104
This commit is contained in:
Patryk Osmaczko 2022-06-29 15:19:18 +02:00 committed by osmaczko
parent 94bf0a0f88
commit 1b49fd4c35
2 changed files with 2 additions and 1 deletions

View File

@ -46,6 +46,7 @@ StatusModal {
rightPadding: 0
label: qsTr("Community private key")
input.text: elidedPkey
input.edit.readOnly: true
input.edit.onActiveFocusChanged: {
pKeyInput.input.text = pKeyInput.input.edit.focus ? popup.privateKey : elidedPkey
}

View File

@ -176,7 +176,6 @@ StatusAppTwoPanelLayout {
onBackUpClicked: {
Global.openPopup(transferOwnershipPopup, {
privateKey: root.chatCommunitySectionModule.exportCommunity(root.communityId),
store: root.store
})
}
}
@ -237,6 +236,7 @@ StatusAppTwoPanelLayout {
id: transferOwnershipPopup
TransferOwnershipPopup {
anchors.centerIn: parent
store: root.rootStore
}
}