1
0

qml: enable canPay in InvoiceDialog if wallet has insufficient funds to pay via lightning

and invoice has fallback address and amount can be paid on-chain.
In WalletMainView, follow on-chain payment path if available lighting balance is
insufficient for the invoice amount
This commit is contained in:
Sander van Grieken
2023-03-13 17:50:00 +01:00
parent dd27c6beff
commit faf0c80893
3 changed files with 13 additions and 8 deletions

View File

@@ -78,7 +78,9 @@ ElDialog {
text: invoice.invoiceType == Invoice.OnchainInvoice
? qsTr('On chain')
: invoice.invoiceType == Invoice.LightningInvoice
? qsTr('Lightning')
? invoice.address
? qsTr('Lightning with on-chain fallback address')
: qsTr('Lightning')
: ''
Layout.fillWidth: true
}