From 72a709c11d8b4db3c962e5b2ee51b1baf64d521e Mon Sep 17 00:00:00 2001 From: Gary Sharp Date: Thu, 5 Mar 2026 15:36:18 +1100 Subject: [PATCH] qol: Saved Exports: informational message --- .../Areas/Config/Views/Export/Index.cshtml | 23 +-- .../Config/Views/Export/Index.generated.cs | 146 ++---------------- 2 files changed, 23 insertions(+), 146 deletions(-) diff --git a/Disco.Web/Areas/Config/Views/Export/Index.cshtml b/Disco.Web/Areas/Config/Views/Export/Index.cshtml index 0160e844..8aee871d 100644 --- a/Disco.Web/Areas/Config/Views/Export/Index.cshtml +++ b/Disco.Web/Areas/Config/Views/Export/Index.cshtml @@ -77,23 +77,12 @@ else {

No saved exports are configured

-
- @if (Authorization.Has(Claims.Device.Actions.Export)) - { - Device Export - } - @if (Authorization.Has(Claims.Job.Actions.Export)) - { - Job Export - } - @if (Authorization.Has(Claims.Config.UserFlag.Export)) - { - User Flag Export - } - @if (Authorization.Has(Claims.Config.DeviceFlag.Export)) - { - Device Flag Export - } +
+

+ + Visit any export page (eg. Device Export) + and click "Save Export" to create a saved export that can be scheduled or run on demand. +

} diff --git a/Disco.Web/Areas/Config/Views/Export/Index.generated.cs b/Disco.Web/Areas/Config/Views/Export/Index.generated.cs index 64d27c78..bffd9bcd 100644 --- a/Disco.Web/Areas/Config/Views/Export/Index.generated.cs +++ b/Disco.Web/Areas/Config/Views/Export/Index.generated.cs @@ -420,148 +420,36 @@ WriteLiteral(" class=\"form\""); WriteLiteral(" style=\"width: 450px; padding: 100px 0;\""); -WriteLiteral(">\r\n

No saved exports are configured

\r\n
\r\n"); +WriteLiteral(">\r\n

No saved exports are configured

\r\n
\r\n" + +"
\r\n"); #line 88 "..\..\Areas\Config\Views\Export\Index.cshtml" - } - - - #line default - #line hidden -WriteLiteral(" "); - - - #line 89 "..\..\Areas\Config\Views\Export\Index.cshtml" - if (Authorization.Has(Claims.Config.UserFlag.Export)) - { - - - #line default - #line hidden -WriteLiteral(" (Url.Action(MVC.Config.UserFlag.Export()) - - #line default - #line hidden -, 4017), false) -); - -WriteLiteral(" class=\"button small\""); - -WriteLiteral(">User Flag Export\r\n"); - - - #line 92 "..\..\Areas\Config\Views\Export\Index.cshtml" - } - - - #line default - #line hidden -WriteLiteral(" "); - - - #line 93 "..\..\Areas\Config\Views\Export\Index.cshtml" - if (Authorization.Has(Claims.Config.DeviceFlag.Export)) - { - - - #line default - #line hidden -WriteLiteral(" (Url.Action(MVC.Config.DeviceFlag.Export()) - - #line default - #line hidden -, 4228), false) -); - -WriteLiteral(" class=\"button small\""); - -WriteLiteral(">Device Flag Export\r\n"); - - - #line 96 "..\..\Areas\Config\Views\Export\Index.cshtml" - } - - - #line default - #line hidden -WriteLiteral(" \r\n \r\n"); - - - #line 99 "..\..\Areas\Config\Views\Export\Index.cshtml" }