mirror of
https://github.com/aljazceru/btcpayserver.git
synced 2026-01-22 15:35:12 +01:00
Merge pull request #2115 from btcpayserver/pay-button-app-fix
FIx Pay Button Link preview when app mode chosen
This commit is contained in:
@@ -153,9 +153,11 @@
|
||||
<div class="col-lg-5">
|
||||
<h4>Preview</h4>
|
||||
<div id="preview"></div>
|
||||
<h4 class="mt-2">Link</h4>
|
||||
<span>Alternatively, you can share this link or encode it in a QR code</span>
|
||||
<div id="preview-link"></div>
|
||||
<div v-show="!srvModel.appIdEndpoint">
|
||||
<h4 class="mt-2">Link</h4>
|
||||
<span>Alternatively, you can share this link or encode it in a QR code</span>
|
||||
<div id="preview-link"></div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<hr />
|
||||
|
||||
@@ -197,7 +197,7 @@ function inputChanges(event, buttonSize) {
|
||||
}
|
||||
});
|
||||
url = url.href;
|
||||
$("#preview-link").append(`<a href="${url}">${url}</a>`)
|
||||
$("#preview-link").html(`<a href="${url}">${url}</a>`)
|
||||
|
||||
$('pre code').each(function (i, block) {
|
||||
hljs.highlightBlock(block);
|
||||
|
||||
Reference in New Issue
Block a user