qml: show proper Payment failed message when reason is empty (e.g. from previous session)
also capitalisation consistency.
This commit is contained in:
@@ -485,7 +485,7 @@ Item {
|
||||
var dialog = app.messageDialog.createObject(app, {
|
||||
title: qsTr('Error'),
|
||||
iconSource: Qt.resolvedUrl('../../icons/warning.png'),
|
||||
text: message
|
||||
text: message ? message : qsTr('Payment failed')
|
||||
})
|
||||
dialog.open()
|
||||
}
|
||||
|
||||
@@ -613,10 +613,10 @@ ApplicationWindow
|
||||
}
|
||||
// TODO: add to notification queue instead of barging through
|
||||
function onPaymentSucceeded(key) {
|
||||
notificationPopup.show(Daemon.currentWallet.name, qsTr('Payment Succeeded'))
|
||||
notificationPopup.show(Daemon.currentWallet.name, qsTr('Payment succeeded'))
|
||||
}
|
||||
function onPaymentFailed(key, reason) {
|
||||
notificationPopup.show(Daemon.currentWallet.name, qsTr('Payment Failed') + ': ' + reason)
|
||||
notificationPopup.show(Daemon.currentWallet.name, qsTr('Payment failed') + ': ' + reason)
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user