Only show setup/reset when the page is fully loaded

This commit is contained in:
nicolas.dorier 2024-02-09 09:23:55 +09:00
parent d44ec19663
commit 9380d4ca48
No known key found for this signature in database
GPG key ID: 6618763EF09186FE

View file

@ -202,7 +202,7 @@
</p> </p>
@if (Model.LnurlEndpoint is not null) @if (Model.LnurlEndpoint is not null)
{ {
<p> <p id="BoltcardActions" style="visibility:hidden">
<a id="SetupBoltcard" asp-action="SetupBoltcard" asp-controller="UIPullPayment" asp-route-pullPaymentId="@Model.Id" asp-route-command="configure-boltcard"> <a id="SetupBoltcard" asp-action="SetupBoltcard" asp-controller="UIPullPayment" asp-route-pullPaymentId="@Model.Id" asp-route-command="configure-boltcard">
Setup Boltcard Setup Boltcard
</a> </a>
@ -233,7 +233,7 @@
document.getElementById("ResetBoltcard").setAttribute('target', '_blank'); document.getElementById("ResetBoltcard").setAttribute('target', '_blank');
document.getElementById("ResetBoltcard").setAttribute('href', @Safe.Json(@Model.ResetDeepLink)); document.getElementById("ResetBoltcard").setAttribute('href', @Safe.Json(@Model.ResetDeepLink));
} }
document.getElementById("BoltcardActions").style.visibility = "visible";
window.qrApp = initQRShow({}); window.qrApp = initQRShow({});
delegate('click', 'button[page-qr]', event => { delegate('click', 'button[page-qr]', event => {