fix(wallet): Fix ens username buy

This commit is contained in:
Emil Sawicki 2024-06-06 06:59:16 +02:00 committed by Jonathan Rainville
parent 44d7eba3ff
commit 266f838077
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.Validators 0.1 import StatusQ.Controls.Validators 0.1
@ -137,6 +138,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
validators: [ validators: [
StatusFloatValidator { StatusFloatValidator {