fix(@desktop/wallet): importing keypairs after Waku backup (point 10)
Point 10 of #11968
This commit is contained in:
parent
aec5dc62c9
commit
365fd37f99
|
@ -98,7 +98,7 @@ StatusDialog {
|
|||
}
|
||||
StatusButton {
|
||||
type: StatusBaseButton.Type.Danger
|
||||
text: qsTr("Remove keypair & associated accounts")
|
||||
text: qsTr("Remove keypair and derived accounts")
|
||||
onClicked: root.confirmClicked()
|
||||
Keys.onReturnPressed: function(event) {
|
||||
root.confirmClicked()
|
||||
|
|
|
@ -94,7 +94,7 @@ StatusMenu {
|
|||
}
|
||||
|
||||
StatusAction {
|
||||
text: enabled? qsTr("Remove keypair and associated accounts") : ""
|
||||
text: enabled? qsTr("Remove keypair and derived accounts") : ""
|
||||
enabled: !!root.keyPair &&
|
||||
root.keyPair.pairType !== Constants.keypair.type.profile
|
||||
type: StatusAction.Type.Danger
|
||||
|
|
|
@ -140,7 +140,7 @@ Item {
|
|||
|
||||
function onShowToastKeypairRemoved(keypairName: string) {
|
||||
Global.displayToastMessage(
|
||||
qsTr("“%1” keypair and its associated accounts were successfully removed from all devices").arg(keypairName),
|
||||
qsTr("“%1” keypair and its derived accounts were successfully removed from all devices").arg(keypairName),
|
||||
"",
|
||||
"checkmark-circle",
|
||||
false,
|
||||
|
|
|
@ -45,7 +45,7 @@ Item {
|
|||
Layout.fillWidth: true
|
||||
Layout.leftMargin: d.margin
|
||||
Layout.rightMargin: d.margin
|
||||
text: qsTr("To use the associated accounts on this device, you need to import their keypairs.")
|
||||
text: qsTr("To use the derived accounts on this device, you need to import their keypairs.")
|
||||
wrapMode: Text.WordWrap
|
||||
}
|
||||
|
||||
|
|
|
@ -846,11 +846,9 @@ QtObject {
|
|||
}
|
||||
if (keypair.operability === Constants.keypair.operability.nonOperable) {
|
||||
if (keypair.syncedFrom === Constants.keypair.syncedFrom.backup) {
|
||||
if (keypair.pairType === Constants.keypair.type.seedImport) {
|
||||
return qsTr("Restored from backup. Re-enter seed phrase to use.")
|
||||
}
|
||||
if (keypair.pairType === Constants.keypair.type.privateKeyImport) {
|
||||
return qsTr("Restored from backup. Re-enter private key to use.")
|
||||
if (keypair.pairType === Constants.keypair.type.seedImport ||
|
||||
keypair.pairType === Constants.keypair.type.privateKeyImport) {
|
||||
return qsTr("Restored from backup. Import keypair to use derived accounts.")
|
||||
}
|
||||
}
|
||||
if (keypair.syncedFrom !== "") {
|
||||
|
|
Loading…
Reference in New Issue