[GUI] Fixes in TransferForm.qml

This commit is contained in:
Nathan Hourt 2015-07-29 15:59:15 -04:00
parent 03e16afdb2
commit 75f05a8b1f
2 changed files with 3 additions and 3 deletions

View file

@ -19,9 +19,9 @@ RowLayout {
property Account account property Account account
/// A real in the range [0,1] representing the amount of control the wallet has over this 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 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 /// An Array of Balance objects held by account
property var balances: account? Object.keys(account.balances).map(function(key){return account.balances[key]}) property var balances: account? Object.keys(account.balances).map(function(key){return account.balances[key]})
.filter(function(balance){return balance.amount > 0})
: null : null
/// Set the name field to have active focus /// Set the name field to have active focus

View file

@ -92,9 +92,9 @@ FormBase {
Text { Text {
font.pixelSize: assetField.height / 2.5 font.pixelSize: assetField.height / 2.5
text: { text: {
if (!senderPicker.account) if (!senderPicker.account || !amountField.maxBalance)
return "" 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 } Item { Layout.fillWidth: true }