1
0

qml: LnurlPayRequestDialog validate amount between indicated boundaries

This commit is contained in:
Sander van Grieken
2023-05-12 15:49:42 +02:00
parent 229afdd887
commit 5881eb3035

View File

@@ -17,7 +17,10 @@ ElDialog {
padding: 0
property bool valid: comment.text.length <= invoiceParser.lnurlData['comment_allowed']
property bool commentValid: comment.text.length <= invoiceParser.lnurlData['comment_allowed']
property bool amountValid: amountBtc.textAsSats.satsInt >= parseInt(invoiceParser.lnurlData['min_sendable_sat'])
&& amountBtc.textAsSats.satsInt <= parseInt(invoiceParser.lnurlData['max_sendable_sat'])
property bool valid: commentValid && amountValid
ColumnLayout {
width: parent.width