Transfer: disable Send button if the payment id is invalid

This commit is contained in:
moneromooo.monero
2016-10-16 13:57:56 +01:00
parent 05046a5f21
commit 51f89a8402
3 changed files with 8 additions and 1 deletions

View File

@@ -251,7 +251,7 @@ Rectangle {
shadowPressedColor: "#B32D00"
releasedColor: "#FF6C3C"
pressedColor: "#FF4304"
enabled : addressLine.text.length > 0 && amountLine.text.length > 0
enabled : addressLine.text.length > 0 && amountLine.text.length > 0 && (paymentIdLine.text.trim() === "" || walletManager.paymentIdValid(paymentIdLine.text.trim()))
onClicked: {
console.log("Transfer: paymentClicked")
var priority = priorityModel.get(priorityDropdown.currentIndex).priority