fix(@wallet): preview button instead of enter password/pin

fixes #9119
This commit is contained in:
Anthony Laibe 2023-01-23 10:09:43 +01:00 committed by Anthony Laibe
parent 9cb850f67f
commit 55d39aa7c7
3 changed files with 1 additions and 7 deletions

View File

@ -22,7 +22,6 @@ Item {
property string pathSubFix: "" property string pathSubFix: ""
property bool isLoading: RootStore.derivedAddressesLoading property bool isLoading: RootStore.derivedAddressesLoading
property bool pathError: Utils.isInvalidPath(RootStore.derivedAddressesError) property bool pathError: Utils.isInvalidPath(RootStore.derivedAddressesError)
property string enterPasswordIcon: ""
property alias selectedAddress: selectedDerivedAddress.title property alias selectedAddress: selectedDerivedAddress.title
property alias selectedAddressAvailable: selectedDerivedAddress.enabled property alias selectedAddressAvailable: selectedDerivedAddress.enabled
@ -141,10 +140,7 @@ Item {
StatusButton { StatusButton {
visible: _internal.showEnterPinPassButton visible: _internal.showEnterPinPassButton
text: derivedAddresses.selectedKeyUidMigratedToKeycard || userProfile.isKeycardUser? text: qsTr("Preview address")
qsTr("Enter PIN") :
qsTr("Enter password")
icon.name: derivedAddresses.enterPasswordIcon
highlighted: focus highlighted: focus
onClicked: _internal.runAction() onClicked: _internal.runAction()

View File

@ -278,7 +278,6 @@ StatusModal {
expandable: true expandable: true
expandableComponent: AdvancedAddAccountView { expandableComponent: AdvancedAddAccountView {
width: parent.width width: parent.width
enterPasswordIcon: d.addAccountIcon
onCalculateDerivedPath: { onCalculateDerivedPath: {
if (d.selectedKeyUidMigratedToKeycard) { if (d.selectedKeyUidMigratedToKeycard) {
d.password = "" d.password = ""

View File

@ -167,7 +167,6 @@ ColumnLayout {
selectedKeyUid: advancedSection.selectedKeyUid selectedKeyUid: advancedSection.selectedKeyUid
selectedKeyUidMigratedToKeycard: advancedSection.selectedKeyUidMigratedToKeycard selectedKeyUidMigratedToKeycard: advancedSection.selectedKeyUidMigratedToKeycard
selectedPath: advancedSection.path selectedPath: advancedSection.path
enterPasswordIcon: advancedSection.enterPasswordIcon
Component.onCompleted: { Component.onCompleted: {
advancedSection.selectedAddress = Qt.binding(function() { return derivedAddressesPanel.selectedAddress}) advancedSection.selectedAddress = Qt.binding(function() { return derivedAddressesPanel.selectedAddress})