From dc07f046f29fe7b4da06896e7655bd238f1ecf6a Mon Sep 17 00:00:00 2001 From: d11n Date: Mon, 19 Sep 2022 21:56:42 +0200 Subject: [PATCH] Improve PayButton error page (#4129) As this is a public page we should embed it in the non-navigation layout. Also improves the error display. --- .../Views/UIPublic/PayButtonHandle.cshtml | 15 ++++++--------- 1 file changed, 6 insertions(+), 9 deletions(-) diff --git a/BTCPayServer/Views/UIPublic/PayButtonHandle.cshtml b/BTCPayServer/Views/UIPublic/PayButtonHandle.cshtml index 08c7c0cf4..593b3c6ac 100644 --- a/BTCPayServer/Views/UIPublic/PayButtonHandle.cshtml +++ b/BTCPayServer/Views/UIPublic/PayButtonHandle.cshtml @@ -1,17 +1,14 @@ -@{ +@{ + Layout = "_LayoutSimple"; var allErrors = ViewData.ModelState.Values.SelectMany(v => v.Errors.Select(b => b.ErrorMessage)); } -

Pay Button request failed

- Please fix following errors: -
    - @foreach (var error in allErrors) - { -
  • @error
  • - } -
+ @foreach (var error in allErrors) + { +
@error
+ }