[GUI] Fixes in TransferForm.qml
This commit is contained in:
parent
03e16afdb2
commit
75f05a8b1f
2 changed files with 3 additions and 3 deletions
|
|
@ -19,9 +19,9 @@ RowLayout {
|
|||
property Account account
|
||||
/// A real in the range [0,1] representing the amount of control the wallet has over this account
|
||||
property real accountControlLevel: account && account.isLoaded? account.getActiveControl(app.wallet) : 0
|
||||
onAccountControlLevelChanged: console.log("New acl: " + accountControlLevel)
|
||||
/// An Array of Balance objects held by account
|
||||
property var balances: account? Object.keys(account.balances).map(function(key){return account.balances[key]})
|
||||
.filter(function(balance){return balance.amount > 0})
|
||||
: null
|
||||
|
||||
/// Set the name field to have active focus
|
||||
|
|
|
|||
|
|
@ -92,9 +92,9 @@ FormBase {
|
|||
Text {
|
||||
font.pixelSize: assetField.height / 2.5
|
||||
text: {
|
||||
if (!senderPicker.account)
|
||||
if (!senderPicker.account || !amountField.maxBalance)
|
||||
return ""
|
||||
return qsTr("Fee:<br/>") + operation().fee / amountField.precisionAdjustment + " CORE"
|
||||
return qsTr("Fee:<br/>") + amountField.maxBalance.type.formatAmount(operation().fee) + " CORE"
|
||||
}
|
||||
}
|
||||
Item { Layout.fillWidth: true }
|
||||
|
|
|
|||
Loading…
Reference in a new issue