From 8cdc73c31f44d9ba847c23aa3bcc2f75b529117c Mon Sep 17 00:00:00 2001 From: rockstardev Date: Thu, 11 Jun 2020 17:34:41 -0500 Subject: [PATCH] Moving layout partial to separate folder --- .../Shared/LayoutPartials/SyncModal.cshtml | 106 ++++++++++++++++++ BTCPayServer/Views/Shared/SyncModal.cshtml | 101 ----------------- BTCPayServer/Views/Shared/_Layout.cshtml | 6 +- 3 files changed, 107 insertions(+), 106 deletions(-) create mode 100644 BTCPayServer/Views/Shared/LayoutPartials/SyncModal.cshtml delete mode 100644 BTCPayServer/Views/Shared/SyncModal.cshtml diff --git a/BTCPayServer/Views/Shared/LayoutPartials/SyncModal.cshtml b/BTCPayServer/Views/Shared/LayoutPartials/SyncModal.cshtml new file mode 100644 index 000000000..e01fef5dd --- /dev/null +++ b/BTCPayServer/Views/Shared/LayoutPartials/SyncModal.cshtml @@ -0,0 +1,106 @@ +@inject BTCPayServer.HostedServices.NBXplorerDashboard dashboard + +@if (!dashboard.IsFullySynched()) +{ + + + + @**@ + + + + +} diff --git a/BTCPayServer/Views/Shared/SyncModal.cshtml b/BTCPayServer/Views/Shared/SyncModal.cshtml deleted file mode 100644 index ff7a892ed..000000000 --- a/BTCPayServer/Views/Shared/SyncModal.cshtml +++ /dev/null @@ -1,101 +0,0 @@ -@inject BTCPayServer.HostedServices.NBXplorerDashboard dashboard - - - -@**@ - - - diff --git a/BTCPayServer/Views/Shared/_Layout.cshtml b/BTCPayServer/Views/Shared/_Layout.cshtml index 9a0dc7b29..96388fa39 100644 --- a/BTCPayServer/Views/Shared/_Layout.cshtml +++ b/BTCPayServer/Views/Shared/_Layout.cshtml @@ -2,7 +2,6 @@ @inject UserManager UserManager @inject RoleManager RoleManager @inject BTCPayServer.Services.BTCPayServerEnvironment env -@inject BTCPayServer.HostedServices.NBXplorerDashboard dashboard @inject BTCPayServer.HostedServices.CssThemeManager themeManager @inject BTCPayServer.HostedServices.NotificationManager notificationManager @@ -153,10 +152,7 @@ } - @if (!dashboard.IsFullySynched()) - { - - } + @RenderSection("Scripts", required: false)