Add a clear payment ID button

This commit is contained in:
Michael Campagnaro 2017-03-18 18:28:29 -04:00
parent 43a33e717d
commit 51074a8fe6

View file

@ -64,6 +64,7 @@ Rectangle {
integratedAddressLine.text = qsTr("Invalid payment ID") integratedAddressLine.text = qsTr("Invalid payment ID")
} }
else { else {
paymentIdLine.text = ""
integratedAddressLine.text = "" integratedAddressLine.text = ""
} }
@ -248,9 +249,20 @@ Rectangle {
releasedColor: "#FF6C3C" releasedColor: "#FF6C3C"
pressedColor: "#FF4304" pressedColor: "#FF4304"
text: qsTr("Generate") + translationManager.emptyString; text: qsTr("Generate") + translationManager.emptyString;
anchors.right: parent.right
onClicked: updatePaymentId() onClicked: updatePaymentId()
} }
StandardButton {
id: clearPaymentId
enabled: !!paymentIdLine.text
width: 80
shadowReleasedColor: "#FF4304"
shadowPressedColor: "#B32D00"
releasedColor: "#FF6C3C"
pressedColor: "#FF4304"
text: qsTr("Clear") + translationManager.emptyString;
onClicked: updatePaymentId("")
}
} }
RowLayout { RowLayout {