1
0

further separate invoice objects

This commit is contained in:
Sander van Grieken
2022-06-27 23:00:58 +02:00
parent 12d726efc2
commit 4c9f713f9a
4 changed files with 92 additions and 111 deletions

View File

@@ -163,9 +163,9 @@ Dialog {
Button {
text: qsTr('Pay now')
icon.source: '../../icons/confirmed.png'
enabled: invoice.invoiceType != Invoice.Invalid // TODO && has funds
enabled: invoice.invoiceType != Invoice.Invalid && invoice.canPay
onClicked: {
if (invoice_key == '')
if (invoice_key == '') // save invoice if not retrieved from key
invoice.save_invoice()
dialog.close()
if (invoice.invoiceType == Invoice.OnchainInvoice) {