mirror of
https://github.com/monero-project/monero-gui.git
synced 2025-01-09 03:12:05 +02:00
Fixes transaction confirmation dialog and also makes sure you will not be able to transfer funds when the daemon is not up (to date)
This commit is contained in:
parent
9afaa7cf0f
commit
0b7966f625
1
main.qml
1
main.qml
@ -611,6 +611,7 @@ ApplicationWindow {
|
||||
|
||||
// here we show confirmation popup;
|
||||
transactionConfirmationPopup.title = qsTr("Please confirm transaction:\n") + translationManager.emptyString;
|
||||
transactionConfirmationPopup.text = "";
|
||||
transactionConfirmationPopup.text +=
|
||||
(address === "" ? "" : (qsTr("\n\nAddress: ") + address))
|
||||
+ (paymentId === "" ? "" : (qsTr("\nPayment ID: ") + paymentId))
|
||||
|
@ -332,7 +332,13 @@ Rectangle {
|
||||
rightIcon: "../images/rightIcon.png"
|
||||
Layout.topMargin: 4 * scaleRatio
|
||||
text: qsTr("Send") + translationManager.emptyString
|
||||
enabled : !appWindow.viewOnly && pageRoot.checkInformation(amountLine.text, addressLine.text, paymentIdLine.text, appWindow.persistentSettings.nettype)
|
||||
enabled : {
|
||||
// Send button is enabled when:
|
||||
// 1) Currently opened wallet is not view-only
|
||||
// 2) There is no warning box displayed
|
||||
// 3) The transactional information is correct
|
||||
return !appWindow.viewOnly && warningText.text === '' && pageRoot.checkInformation(amountLine.text, addressLine.text, paymentIdLine.text, appWindow.persistentSettings.nettype);
|
||||
}
|
||||
onClicked: {
|
||||
console.log("Transfer: paymentClicked")
|
||||
var priority = priorityModelV5.get(priorityDropdown.currentIndex).priority
|
||||
|
Loading…
Reference in New Issue
Block a user