From eddd458744d2978d374481f6c1e05477c88dbc89 Mon Sep 17 00:00:00 2001 From: Kukks Date: Fri, 5 May 2023 09:51:41 +0200 Subject: [PATCH] Fix missing shopify link fixes #4945 --- BTCPayServer/Plugins/Shopify/ShopifyPlugin.cs | 1 + .../Views/Shared/Shopify/NavExtension.cshtml | 20 +++++++++++++++++++ .../Shopify/StoreIntegrationsNav.cshtml | 12 ----------- 3 files changed, 21 insertions(+), 12 deletions(-) create mode 100644 BTCPayServer/Views/Shared/Shopify/NavExtension.cshtml delete mode 100644 BTCPayServer/Views/Shared/Shopify/StoreIntegrationsNav.cshtml diff --git a/BTCPayServer/Plugins/Shopify/ShopifyPlugin.cs b/BTCPayServer/Plugins/Shopify/ShopifyPlugin.cs index 447082cc0..aa1f79e57 100644 --- a/BTCPayServer/Plugins/Shopify/ShopifyPlugin.cs +++ b/BTCPayServer/Plugins/Shopify/ShopifyPlugin.cs @@ -15,6 +15,7 @@ namespace BTCPayServer.Plugins.Shopify public override void Execute(IServiceCollection applicationBuilder) { applicationBuilder.AddSingleton(); + applicationBuilder.AddSingleton(new UIExtension("Shopify/NavExtension", "header-nav")); base.Execute(applicationBuilder); } } diff --git a/BTCPayServer/Views/Shared/Shopify/NavExtension.cshtml b/BTCPayServer/Views/Shared/Shopify/NavExtension.cshtml new file mode 100644 index 000000000..0c7b846ef --- /dev/null +++ b/BTCPayServer/Views/Shared/Shopify/NavExtension.cshtml @@ -0,0 +1,20 @@ +@using BTCPayServer.Client +@using Microsoft.AspNetCore.Mvc.TagHelpers +@using BTCPayServer.Abstractions.Extensions +@using BTCPayServer.Abstractions.TagHelpers +@using BTCPayServer.Views.Stores +@model BTCPayServer.Components.MainNav.MainNavViewModel +@{ + var store = Context.GetStoreData(); +} + +@if (store != null) +{ + + +} diff --git a/BTCPayServer/Views/Shared/Shopify/StoreIntegrationsNav.cshtml b/BTCPayServer/Views/Shared/Shopify/StoreIntegrationsNav.cshtml deleted file mode 100644 index ac2f8437a..000000000 --- a/BTCPayServer/Views/Shared/Shopify/StoreIntegrationsNav.cshtml +++ /dev/null @@ -1,12 +0,0 @@ -@using BTCPayServer.Views.Stores -@using BTCPayServer.Abstractions.Extensions -@{ - var store = Context.GetStoreData(); -} - -