mirror of
https://github.com/btcpayserver/btcpayserver.git
synced 2024-11-20 02:28:31 +01:00
c3f73c0de3
* updates * updates * updates * updates * updates * moves api key CTA to top right * updates * more updates * more updates * Fix active state when "Account" is selected * Update wording in subnav: Profile becomes Account * Fix email test * Update Emails wording * Try to fix email test * Make General first tab in store settings Co-authored-by: Dennis Reimann <mail@dennisreimann.de>
78 lines
2.5 KiB
Plaintext
78 lines
2.5 KiB
Plaintext
@model LightningWalletServices
|
|
@{
|
|
ViewData.SetActivePage(ServerNavPages.Services, Model.WalletName);
|
|
}
|
|
|
|
<h3 class="mb-4">@ViewData["Title"]</h3>
|
|
|
|
@if (Model.ShowQR)
|
|
{
|
|
<div class="alert alert-warning alert-dismissible" role="alert">
|
|
<button type="button" class="btn-close" data-bs-dismiss="alert" aria-label="Close">
|
|
<vc:icon symbol="close" />
|
|
</button>
|
|
<div>
|
|
<span><b>CONFIDENTIAL:</b> This QR Code is confidential, close this window as soon as you don't need it anymore.<br /></span>
|
|
<span>A malicious actor with access to this QR Code could steal the funds on your lightning wallet.</span>
|
|
</div>
|
|
</div>
|
|
}
|
|
|
|
<div class="row">
|
|
<div class="col-md-8">
|
|
@if (!ViewContext.ModelState.IsValid)
|
|
{
|
|
<div asp-validation-summary="All" class="text-danger"></div>
|
|
}
|
|
<div class="form-group">
|
|
<h5>Browser connection</h5>
|
|
<p>
|
|
<span>You can go to @Model.WalletName from your browser by <a href="@Model.ServiceLink" rel="noreferrer noopener">clicking here</a><br/></span>
|
|
</p>
|
|
</div>
|
|
|
|
<div class="form-group">
|
|
<h5>QR Code connection</h5>
|
|
<p>
|
|
<span>You can use QR Code to connect to your @Model.WalletName from your mobile.<br/></span>
|
|
</p>
|
|
</div>
|
|
<div class="form-group">
|
|
@if (!Model.ShowQR)
|
|
{
|
|
<div class="form-group">
|
|
<form method="get">
|
|
<input type="hidden" asp-for="ShowQR" value="true"/>
|
|
<button type="submit" class="btn btn-primary">Show Confidential QR Code</button>
|
|
</form>
|
|
</div>
|
|
}
|
|
else
|
|
{
|
|
<div class="form-group">
|
|
<div id="qrCode"></div>
|
|
<div id="qrCodeData" data-url="@Model.ServiceLink"></div>
|
|
</div>
|
|
}
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
@section PageFootContent {
|
|
<partial name="_ValidationScriptsPartial" />
|
|
|
|
@if (Model.ShowQR)
|
|
{
|
|
<script src="~/js/qrcode.js" asp-append-version="true"></script>
|
|
<script>
|
|
new QRCode(document.getElementById("qrCode"), {
|
|
text: @Safe.Json(Model.ServiceLink),
|
|
width: 200,
|
|
height: 200,
|
|
useSVG: true,
|
|
correctLevel : QRCode.CorrectLevel.M
|
|
});
|
|
</script>
|
|
}
|
|
}
|