From fdae221ca5cbe5a6de0ecff797801fc34bc9b9fb Mon Sep 17 00:00:00 2001 From: Kukks Date: Mon, 19 Jul 2021 12:20:24 +0200 Subject: [PATCH] Allow QR code multiple display modes --- BTCPayServer/Views/Manage/APIKeys.cshtml | 3 ++- BTCPayServer/Views/Shared/ShowQR.cshtml | 18 +++++++++++++++--- 2 files changed, 17 insertions(+), 4 deletions(-) diff --git a/BTCPayServer/Views/Manage/APIKeys.cshtml b/BTCPayServer/Views/Manage/APIKeys.cshtml index 2cc29f6db..5ef74bf5e 100644 --- a/BTCPayServer/Views/Manage/APIKeys.cshtml +++ b/BTCPayServer/Views/Manage/APIKeys.cshtml @@ -113,7 +113,8 @@ $("button[data-qr]").on("click", function (){ var data = apiKeys[parseInt($(this).data("qr"))]; qrApp.data = JSON.stringify(data); - qrApp.useBCUR = false; + qrApp.currentMode = "static"; + qrApp.allowedModes = ["static"]; $("#scan-qr-modal").modal("show"); }); }); diff --git a/BTCPayServer/Views/Shared/ShowQR.cshtml b/BTCPayServer/Views/Shared/ShowQR.cshtml index 37df2c823..6040e058b 100644 --- a/BTCPayServer/Views/Shared/ShowQR.cshtml +++ b/BTCPayServer/Views/Shared/ShowQR.cshtml @@ -5,7 +5,7 @@ +