fix(@desktop/wallet): removed options for creating a derivation path that's not a keycard compatible if selected origin is migrated to a keycard

If selected origin is an origin migrate to a keycard the following options are disabled:
- drop down menu (where user is able to select one of predefined paths) in custom derivation section
- reset button
This commit is contained in:
Sale Djenic 2023-05-25 09:28:55 +02:00 committed by saledjenic
parent 1d41590d56
commit 36ca4cd8f9
1 changed files with 3 additions and 1 deletions

View File

@ -34,7 +34,8 @@ GridLayout {
StatusLinkText {
objectName: "AddAccountPopup-ResetDerivationPath"
enabled: root.store.derivedAddressModel.count > 0 &&
enabled: !root.store.selectedOrigin.migratedToKeycard &&
root.store.derivedAddressModel.count > 0 &&
root.store.addAccountModule.suggestedDerivationPath !== root.store.addAccountModule.derivationPath
font.pixelSize: Constants.addAccountPopup.labelFontSize1
text: qsTr("Reset")
@ -82,6 +83,7 @@ GridLayout {
input.rightComponent: StatusIcon {
icon: "chevron-down"
color: Theme.palette.baseColor1
visible: !root.store.selectedOrigin.migratedToKeycard
MouseArea {
anchors.fill: parent