formatting.
This commit is contained in:
@@ -118,7 +118,8 @@ new Vue({
|
||||
|
||||
this.qrCodeDialog.data = _.clone(link)
|
||||
console.log(this.qrCodeDialog.data)
|
||||
this.qrCodeDialog.data.url = window.location.protocol + "//" + window.location.host
|
||||
this.qrCodeDialog.data.url =
|
||||
window.location.protocol + '//' + window.location.host
|
||||
this.qrCodeDialog.show = true
|
||||
},
|
||||
openUpdateDialog: function (linkId) {
|
||||
|
||||
@@ -287,14 +287,13 @@
|
||||
|
||||
<q-dialog v-model="qrCodeDialog.show" position="top">
|
||||
<q-card v-if="qrCodeDialog.data" class="q-pa-lg lnbits__dialog-card">
|
||||
|
||||
<q-responsive :ratio="1" class="q-mx-xl q-mb-md">
|
||||
<qrcode
|
||||
:value="qrCodeDialog.data.url + '/?lightning=' + qrCodeDialog.data.lnurl"
|
||||
:options="{width: 800}"
|
||||
class="rounded-borders"
|
||||
></qrcode>
|
||||
{% raw %}
|
||||
{% raw %}
|
||||
</q-responsive>
|
||||
<p style="word-break: break-all">
|
||||
<strong>ID:</strong> {{ qrCodeDialog.data.id }}<br />
|
||||
|
||||
@@ -187,10 +187,7 @@ async def api_lnurl_callback(unique_hash):
|
||||
extra={"tag": "withdraw"},
|
||||
)
|
||||
|
||||
changes = {
|
||||
"open_time": link.wait_time + now,
|
||||
"used": link.used + 1
|
||||
}
|
||||
changes = {"open_time": link.wait_time + now, "used": link.used + 1}
|
||||
|
||||
update_withdraw_link(link.id, **changes)
|
||||
except ValueError as e:
|
||||
|
||||
Reference in New Issue
Block a user