From 2eff7523c32785009f1e02680fca188640b31e8d Mon Sep 17 00:00:00 2001 From: d11n Date: Wed, 13 Nov 2024 13:05:23 +0100 Subject: [PATCH] UI: Fix mising navigation links for store managers (#6368) --- BTCPayServer.Tests/SeleniumTester.cs | 8 ++++++++ BTCPayServer.Tests/SeleniumTests.cs | 2 +- BTCPayServer/Components/MainNav/Default.cshtml | 18 +++++++++--------- 3 files changed, 18 insertions(+), 10 deletions(-) diff --git a/BTCPayServer.Tests/SeleniumTester.cs b/BTCPayServer.Tests/SeleniumTester.cs index 044d856b9..397ed7379 100644 --- a/BTCPayServer.Tests/SeleniumTester.cs +++ b/BTCPayServer.Tests/SeleniumTester.cs @@ -643,7 +643,15 @@ retry: GoToUrl(url); Assert.DoesNotMatch("404 - Page not found $"/stores/{storeId}/{subPath}"; + string GetStorePath(string subPath) => $"/stores/{storeId}" + (string.IsNullOrEmpty(subPath) ? "" : $"/{subPath}"); // Owner access s.AssertPageAccess(true, GetStorePath("")); diff --git a/BTCPayServer/Components/MainNav/Default.cshtml b/BTCPayServer/Components/MainNav/Default.cshtml index 89ef50574..4b9c3f148 100644 --- a/BTCPayServer/Components/MainNav/Default.cshtml +++ b/BTCPayServer/Components/MainNav/Default.cshtml @@ -45,31 +45,31 @@ @if (ViewData.IsPageActive([StoreNavPages.General, StoreNavPages.Rates, StoreNavPages.CheckoutAppearance, StoreNavPages.Tokens, StoreNavPages.Users, StoreNavPages.Roles, StoreNavPages.Webhooks, StoreNavPages.PayoutProcessors, StoreNavPages.Emails, StoreNavPages.Forms])) { - - - - - - - - - }