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)