fix(wallet): Fix ens username buy (#15068)

This commit is contained in:
Cuteivist 2024-06-10 12:31:13 +02:00 committed by GitHub
parent eaf5f0263f
commit 99ba96e689
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 4 additions and 2 deletions

View File

@ -81,8 +81,7 @@ StatusDialog {
readonly property double maxCryptoBalance: isSelectedHoldingValidAsset ? selectedHolding.currentBalance : 0 readonly property double maxCryptoBalance: isSelectedHoldingValidAsset ? selectedHolding.currentBalance : 0
readonly property double maxInputBalance: amountToSendInput.inputIsFiat ? maxFiatBalance : maxCryptoBalance readonly property double maxInputBalance: amountToSendInput.inputIsFiat ? maxFiatBalance : maxCryptoBalance
readonly property string inputSymbol: amountToSendInput.inputIsFiat ? currencyStore.currentCurrency : !!d.selectedHolding && !!d.selectedHolding.symbol ? d.selectedHolding.symbol: "" readonly property string inputSymbol: amountToSendInput.inputIsFiat ? currencyStore.currentCurrency : !!d.selectedHolding && !!d.selectedHolding.symbol ? d.selectedHolding.symbol: ""
readonly property bool errorMode: popup.isLoading || !recipientLoader.ready ? false : errorType !== Constants.NoError || networkSelector.errorMode readonly property bool errorMode: popup.isLoading || !recipientLoader.ready ? false : errorType !== Constants.NoError || networkSelector.errorMode || !(amountToSendInput.inputNumberValid || d.isCollectiblesTransfer)
|| !(amountToSendInput.inputNumberValid || d.isCollectiblesTransfer)
readonly property string uuid: Utils.uuid() readonly property string uuid: Utils.uuid()
property bool isPendingTx: false property bool isPendingTx: false
property string totalTimeEstimate property string totalTimeEstimate

View File

@ -45,6 +45,7 @@ Rectangle {
Layout.alignment: Qt.AlignVCenter | Qt.AlignRight Layout.alignment: Qt.AlignVCenter | Qt.AlignRight
verticalAlignment: Text.AlignVCenter verticalAlignment: Text.AlignVCenter
horizontalAlignment: Text.AlignRight horizontalAlignment: Text.AlignRight
elide: Text.ElideRight
text: "%1 %2".arg(count).arg(name) text: "%1 %2".arg(count).arg(name)
font.pixelSize: 13 font.pixelSize: 13
lineHeight: 18 lineHeight: 18

View File

@ -3,6 +3,7 @@ import QtQuick.Layouts 1.15
import StatusQ.Core 0.1 import StatusQ.Core 0.1
import StatusQ.Core.Theme 0.1 import StatusQ.Core.Theme 0.1
import StatusQ.Controls 0.1
import StatusQ.Core.Utils 0.1 as SQUtils import StatusQ.Core.Utils 0.1 as SQUtils
import StatusQ.Controls 0.1 import StatusQ.Controls 0.1
import StatusQ.Components 0.1 import StatusQ.Components 0.1
@ -141,6 +142,7 @@ ColumnLayout {
input.edit.color: input.valid ? Theme.palette.directColor1 input.edit.color: input.valid ? Theme.palette.directColor1
: Theme.palette.dangerColor1 : Theme.palette.dangerColor1
input.edit.readOnly: !root.interactive input.edit.readOnly: !root.interactive
validationMode: StatusInput.ValidationMode.OnlyWhenDirty
validationMode: StatusInput.ValidationMode.Always validationMode: StatusInput.ValidationMode.Always
validators: [ validators: [