formatting.

This commit is contained in:
fiatjaf
2020-11-18 22:26:30 -03:00
parent a67b93108b
commit 594e28eab7
5 changed files with 11 additions and 13 deletions
@@ -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 />
+1 -4
View File
@@ -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: