mirror of
https://github.com/monero-project/monero-gui.git
synced 2025-01-10 21:04:32 +00:00
Add a clear payment ID button
This commit is contained in:
parent
43a33e717d
commit
51074a8fe6
1 changed files with 13 additions and 1 deletions
|
@ -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 {
|
||||||
|
|
Loading…
Reference in a new issue