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

View File

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

View File

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