mirror of
https://github.com/Armored-Dragon/overte.git
synced 2025-03-11 16:13:16 +01:00
Case 21703 - Disable SUBMIT before balance is retrieved
to prevent sending a send-money request with too large of a balance
This commit is contained in:
parent
28b8f1a62c
commit
822e5ceb98
1 changed files with 2 additions and 0 deletions
|
@ -71,6 +71,7 @@ Item {
|
|||
|
||||
onBalanceResult : {
|
||||
balanceText.text = result.data.balance;
|
||||
sendButton.enabled = true;
|
||||
}
|
||||
|
||||
onTransferAssetToNodeResult: {
|
||||
|
@ -1371,6 +1372,7 @@ Item {
|
|||
height: 40;
|
||||
width: 100;
|
||||
text: "SUBMIT";
|
||||
enabled: false;
|
||||
onClicked: {
|
||||
if (root.assetCertID === "" && parseInt(amountTextField.text) > parseInt(balanceText.text)) {
|
||||
amountTextField.focus = true;
|
||||
|
|
Loading…
Reference in a new issue