From b8d509eb124d6e457e8a903f0bff8e9a6abdc3c6 Mon Sep 17 00:00:00 2001 From: "nicolas.dorier" Date: Thu, 7 Jul 2022 21:54:45 +0900 Subject: [PATCH] Show order id in invoice details even if orderUrl is not present --- BTCPayServer/Views/UIInvoice/Invoice.cshtml | 31 ++++++++++++--------- 1 file changed, 18 insertions(+), 13 deletions(-) diff --git a/BTCPayServer/Views/UIInvoice/Invoice.cshtml b/BTCPayServer/Views/UIInvoice/Invoice.cshtml index 6aec6d9a6..97eda79ce 100644 --- a/BTCPayServer/Views/UIInvoice/Invoice.cshtml +++ b/BTCPayServer/Views/UIInvoice/Invoice.cshtml @@ -140,23 +140,28 @@ Invoice Id @Model.Id - @if (!string.IsNullOrEmpty(Model.TypedMetadata.OrderUrl)) + @if (!string.IsNullOrEmpty(Model.TypedMetadata.OrderId)) { Order Id - - - @if (string.IsNullOrEmpty(Model.TypedMetadata.OrderId)) - { - View Order - } - else - { - @Model.TypedMetadata.OrderId - } - - + @if (!string.IsNullOrEmpty(Model.TypedMetadata.OrderUrl)) + { + + @if (string.IsNullOrEmpty(Model.TypedMetadata.OrderId)) + { + View Order + } + else + { + @Model.TypedMetadata.OrderId + } + + } + else + { + @Model.TypedMetadata.OrderId + } }