fix(wallet): move to keycard option should not be available for private key imported key pairs
Closes #13796
This commit is contained in:
parent
65c553b9e8
commit
e44774dd88
|
@ -36,7 +36,7 @@ StatusMenu {
|
||||||
|
|
||||||
StatusAction {
|
StatusAction {
|
||||||
text: enabled? root.keyPair.migratedToKeycard? qsTr("Stop using Keycard") : qsTr("Move keypair to a Keycard") : ""
|
text: enabled? root.keyPair.migratedToKeycard? qsTr("Stop using Keycard") : qsTr("Move keypair to a Keycard") : ""
|
||||||
enabled: !!root.keyPair
|
enabled: !!root.keyPair && root.keyPair.pairType !== Constants.keypair.type.privateKeyImport
|
||||||
icon.name: !!root.keyPair && root.keyPair.migratedToKeycard? "keycard-crossed" : "keycard"
|
icon.name: !!root.keyPair && root.keyPair.migratedToKeycard? "keycard-crossed" : "keycard"
|
||||||
icon.color: Theme.palette.primaryColor1
|
icon.color: Theme.palette.primaryColor1
|
||||||
onTriggered: {
|
onTriggered: {
|
||||||
|
|
Loading…
Reference in New Issue