fix(@desktop): fix AmountInput locale

Fixes #9103
This commit is contained in:
Dario Gabriel Lipicar 2023-01-13 08:52:03 -03:00 committed by dlipicar
parent e3e99c6a48
commit ac7b322ee7
4 changed files with 1 additions and 9 deletions

View File

@ -17,7 +17,6 @@ ColumnLayout {
property alias amountText: amountInput.text
property alias amount: amountInput.amount
readonly property bool amountValid: amountInput.valid && amountInput.text.length > 0
property var locale
signal pickerClicked
@ -67,7 +66,5 @@ ColumnLayout {
Layout.topMargin: 8
allowDecimals: false
locale: root.locale
}
}

View File

@ -266,7 +266,6 @@ StatusDropdown {
tokenName: d.defaultTokenNameText
amountText: d.tokenAmountText
onAmountTextChanged: d.tokenAmountText = amountText
locale: root.store.locale
readonly property real effectiveAmount: amountValid ? amount : 0
onEffectiveAmountChanged: root.tokenAmount = effectiveAmount
@ -319,7 +318,6 @@ StatusDropdown {
collectibleName: d.defaultCollectibleNameText
amountText: d.collectibleAmountText
onAmountTextChanged: d.collectibleAmountText = amountText
locale: root.store.locale
readonly property real effectiveAmount: amountValid ? amount : 0
onEffectiveAmountChanged: root.collectibleAmount = effectiveAmount

View File

@ -15,7 +15,6 @@ ColumnLayout {
property alias amountText: amountInput.text
property alias amount: amountInput.amount
readonly property bool amountValid: amountInput.valid && amountInput.text.length > 0
property var locale
signal pickerClicked
@ -44,7 +43,5 @@ ColumnLayout {
Layout.fillWidth: true
Layout.topMargin: 8
locale: root.locale
}
}

View File

@ -10,7 +10,7 @@ Input {
id: root
property int maximumLength: 10
property var locale
property var locale: Qt.locale()
readonly property alias amount: d.amount
readonly property bool valid: validationError.length === 0