From cfdf8b167069f81897439bae6a9da2b1560f39a5 Mon Sep 17 00:00:00 2001 From: Rockstar Developer <5191402+rockstardev@users.noreply.github.com> Date: Fri, 9 Nov 2018 02:13:45 -0600 Subject: [PATCH] Example modal in invoice list (#387) --- BTCPayServer/Views/Invoice/ListInvoices.cshtml | 18 ++++++++++++++++-- BTCPayServer/wwwroot/modal/btcpay.js | 2 +- BTCPayServer/wwwroot/modal/test.html | 11 ----------- 3 files changed, 17 insertions(+), 14 deletions(-) delete mode 100644 BTCPayServer/wwwroot/modal/test.html diff --git a/BTCPayServer/Views/Invoice/ListInvoices.cshtml b/BTCPayServer/Views/Invoice/ListInvoices.cshtml index 41e420e28..072e77354 100644 --- a/BTCPayServer/Views/Invoice/ListInvoices.cshtml +++ b/BTCPayServer/Views/Invoice/ListInvoices.cshtml @@ -1,6 +1,15 @@ @model InvoicesModel @{ ViewData["Title"] = "Invoices"; + var rootUrl = Context.Request.GetAbsoluteRoot(); +} + +@section HeadScripts { + + + }
@@ -107,8 +116,13 @@ @if (invoice.ShowCheckout) { - Checkout - - }Details + + Checkout + [^] + - + + } + Details } diff --git a/BTCPayServer/wwwroot/modal/btcpay.js b/BTCPayServer/wwwroot/modal/btcpay.js index 8ea852d89..557b7c80d 100644 --- a/BTCPayServer/wwwroot/modal/btcpay.js +++ b/BTCPayServer/wwwroot/modal/btcpay.js @@ -22,7 +22,7 @@ iframe.style.left = 0; iframe.style.height = '100%'; iframe.style.width = '100%'; - iframe.style.zIndex = '1000'; + iframe.style.zIndex = '2000'; var origin = 'http://slack.btcpayserver.org join us there, and initialize this with your origin url through setApiUrlPrefix'; // urlPrefix should be site root without trailing slash diff --git a/BTCPayServer/wwwroot/modal/test.html b/BTCPayServer/wwwroot/modal/test.html deleted file mode 100644 index 43b2a6248..000000000 --- a/BTCPayServer/wwwroot/modal/test.html +++ /dev/null @@ -1,11 +0,0 @@ - - - - - - - - -