From 71fa53bfb2fbe6c6f4c7d9ea9fe5169921cbb341 Mon Sep 17 00:00:00 2001 From: Gary Sharp Date: Thu, 22 Jan 2026 15:22:23 +1100 Subject: [PATCH] bug: on the home page a white bar appeared at the bottom of the screen when there was a pending enrolment --- Disco.Web/Views/Job/Index.cshtml | 14 ++--- Disco.Web/Views/Job/Index.generated.cs | 73 +++++++++++++------------- 2 files changed, 44 insertions(+), 43 deletions(-) diff --git a/Disco.Web/Views/Job/Index.cshtml b/Disco.Web/Views/Job/Index.cshtml index a3170350..8f0bf583 100644 --- a/Disco.Web/Views/Job/Index.cshtml +++ b/Disco.Web/Views/Job/Index.cshtml @@ -145,12 +145,6 @@ @Html.Partial(MVC.Shared.Views._JobTable, Model.StaleJobs, new ViewDataDictionary()) } -@if (Authorization.Has(Claims.Job.Actions.Export)) -{ -
- @Html.ActionLinkButton("Export Jobs", MVC.Job.Export()) -
-} @if (Model.PendingEnrolments != null && Model.PendingEnrolments.Count > 0 && Authorization.Has(Claims.Device.Actions.EnrolDevices)) {
@@ -166,4 +160,10 @@ .appendTo(layout_PageHeading); }); -} \ No newline at end of file +} +@if (Authorization.Has(Claims.Job.Actions.Export)) +{ +
+ @Html.ActionLinkButton("Export Jobs", MVC.Job.Export()) +
+} diff --git a/Disco.Web/Views/Job/Index.generated.cs b/Disco.Web/Views/Job/Index.generated.cs index 843b3cd8..7eb2e72d 100644 --- a/Disco.Web/Views/Job/Index.generated.cs +++ b/Disco.Web/Views/Job/Index.generated.cs @@ -306,38 +306,6 @@ WriteLiteral("\r\n
\r\n"); #line hidden #line 148 "..\..\Views\Job\Index.cshtml" - if (Authorization.Has(Claims.Job.Actions.Export)) -{ - - - #line default - #line hidden -WriteLiteral(" \r\n"); - -WriteLiteral(" "); - - - #line 151 "..\..\Views\Job\Index.cshtml" - Write(Html.ActionLinkButton("Export Jobs", MVC.Job.Export())); - - - #line default - #line hidden -WriteLiteral("\r\n \r\n"); - - - #line 153 "..\..\Views\Job\Index.cshtml" -} - - - #line default - #line hidden - - #line 154 "..\..\Views\Job\Index.cshtml" if (Model.PendingEnrolments != null && Model.PendingEnrolments.Count > 0 && Authorization.Has(Claims.Device.Actions.EnrolDevices)) { @@ -355,14 +323,14 @@ WriteLiteral(" class=\"fa fa-exclamation-circle info\""); WriteLiteral(">\r\n
There are device enrolments pending approval.
\r\n " + "(Url.Action(MVC.Config.Enrolment.Status()) + #line 153 "..\..\Views\Job\Index.cshtml" +, Tuple.Create(Tuple.Create("", 6769), Tuple.Create(Url.Action(MVC.Config.Enrolment.Status()) #line default #line hidden -, 6933), false) +, 6769), false) ); WriteLiteral(" class=\"button small alert\""); @@ -377,8 +345,41 @@ WriteLiteral(" \r\n"); + #line 163 "..\..\Views\Job\Index.cshtml" +} + + + #line default + #line hidden + + #line 164 "..\..\Views\Job\Index.cshtml" + if (Authorization.Has(Claims.Job.Actions.Export)) +{ + + + #line default + #line hidden +WriteLiteral(" \r\n"); + +WriteLiteral(" "); + + + #line 167 "..\..\Views\Job\Index.cshtml" + Write(Html.ActionLinkButton("Export Jobs", MVC.Job.Export())); + + + #line default + #line hidden +WriteLiteral("\r\n \r\n"); + + #line 169 "..\..\Views\Job\Index.cshtml" } + #line default #line hidden