add a QEAmount type for storing/passing BTC amounts in the widest sense
from a UI perspective. Stores sats, millisats (LN), whether MAX amount is requested etc some refactor QEInvoice type and Send page
This commit is contained in:
@@ -213,7 +213,12 @@ Pane {
|
||||
model: DelegateModel {
|
||||
id: delegateModel
|
||||
model: Daemon.currentWallet.invoiceModel
|
||||
delegate: InvoiceDelegate {}
|
||||
delegate: InvoiceDelegate {
|
||||
onClicked: {
|
||||
var dialog = confirmInvoiceDialog.createObject(app, {'invoice' : invoice, 'invoice_key': model.key})
|
||||
dialog.open()
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
remove: Transition {
|
||||
@@ -288,9 +293,7 @@ Pane {
|
||||
// and maybe store invoice if expiry allows
|
||||
}
|
||||
}
|
||||
onInvoiceTypeChanged: {
|
||||
if (invoiceType == Invoice.Invalid)
|
||||
return
|
||||
onValidationSuccess: {
|
||||
// address only -> fill form fields
|
||||
// else -> show invoice confirmation dialog
|
||||
if (invoiceType == Invoice.OnchainOnlyAddress)
|
||||
|
||||
Reference in New Issue
Block a user