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(); -} - -