qml: auto-pay if entering InvoiceDialog from a lnurl-pay dialog
This commit is contained in:
@@ -456,5 +456,10 @@ ElDialog {
|
||||
} else if (invoice.amount.isMax) {
|
||||
amountMax.checked = true
|
||||
}
|
||||
if (invoice.lnurlData) {
|
||||
// we arrive from a lnurl-pay confirm dialog where the user already indicated the intent to pay.
|
||||
if (invoice.canPay)
|
||||
doPay()
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -92,7 +92,7 @@ ElDialog {
|
||||
FlatButton {
|
||||
Layout.topMargin: constants.paddingLarge
|
||||
Layout.fillWidth: true
|
||||
text: qsTr('Proceed')
|
||||
text: qsTr('Pay')
|
||||
icon.source: '../../icons/confirmed.png'
|
||||
enabled: valid
|
||||
onClicked: {
|
||||
|
||||
Reference in New Issue
Block a user