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

View file

@ -1,15 +1,12 @@
{% extends "base.html" %}
<!---->
{% from "macros.jinja" import window_vars with context
%}
{% from "macros.jinja" import window_vars with context %}
<!---->
{% block scripts %} {{ window_vars(user, wallet) }}
<script src="/core/static/js/wallet.js"></script>
{% endblock %}
<!---->
{% block title %}
{{ wallet.name }} - {{ SITE_TITLE }}
{% endblock %}
{% block title %} {{ wallet.name }} - {{ SITE_TITLE }} {% endblock %}
<!---->
{% block page %}
<div class="row q-col-gutter-md">

View file

@ -79,6 +79,10 @@ async def api_lnurl_callback(link_id):
extra={"tag": "lnurlp", "link": link.id, "comment": comment},
)
resp = LnurlPayActionResponse(pr=payment_request, success_action=link.success_action(payment_hash), routes=[],)
resp = LnurlPayActionResponse(
pr=payment_request,
success_action=link.success_action(payment_hash),
routes=[],
)
return jsonify(resp.dict()), HTTPStatus.OK

View file

@ -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) {

View file

@ -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 />

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: