feature: exports api refactoring

This commit is contained in:
Gary Sharp
2025-02-14 13:07:30 +11:00
parent 2c215e4856
commit d3cef11796
15 changed files with 239 additions and 232 deletions
@@ -12,7 +12,6 @@ using Disco.Web.Areas.Config.Models.UserFlag;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;
namespace Disco.Web.Areas.Config.Controllers
@@ -123,7 +122,8 @@ namespace Disco.Web.Areas.Config.Controllers
#region Export
[DiscoAuthorizeAny(Claims.Config.UserFlag.Export), HttpGet]
[HttpGet]
[DiscoAuthorizeAny(Claims.Config.UserFlag.Export)]
public virtual ActionResult Export(Guid? exportId, int? userFlagId, bool? currentOnly)
{
var m = new ExportModel()
@@ -205,5 +205,5 @@
<button type="button" class="button" disabled title="Requires Manage Saved Exports Permission">Save Export</button>
}
<button type="button" id="DeviceFlag_Export_Button" class="button">Export Device Flags</button>
<button type="button" id="DeviceFlag_Export_Button" class="button">Export Now</button>
</div>
@@ -809,7 +809,7 @@ WriteLiteral(" id=\"DeviceFlag_Export_Button\"");
WriteLiteral(" class=\"button\"");
WriteLiteral(">Export Device Flags</button>\r\n</div>\r\n");
WriteLiteral(">Export Now</button>\r\n</div>\r\n");
}
}
@@ -205,5 +205,5 @@
<button type="button" class="button" disabled title="Requires Manage Saved Exports Permission">Save Export</button>
}
<button type="button" id="UserFlag_Export_Button" class="button">Export User Flags</button>
<button type="button" id="UserFlag_Export_Button" class="button">Export Now</button>
</div>
@@ -809,7 +809,7 @@ WriteLiteral(" id=\"UserFlag_Export_Button\"");
WriteLiteral(" class=\"button\"");
WriteLiteral(">Export User Flags</button>\r\n</div>\r\n");
WriteLiteral(">Export Now</button>\r\n</div>\r\n");
}
}
+1 -1
View File
@@ -296,5 +296,5 @@
<button type="button" class="button" disabled title="Requires Manage Saved Exports Permission">Save Export</button>
}
<button id="Jobs_Export_Button" type="button" class="button">Export Jobs</button>
<button id="Jobs_Export_Button" type="button" class="button">Export Now</button>
</div>
+1 -1
View File
@@ -1154,7 +1154,7 @@ WriteLiteral(" type=\"button\"");
WriteLiteral(" class=\"button\"");
WriteLiteral(">Export Jobs</button>\r\n</div>\r\n");
WriteLiteral(">Export Now</button>\r\n</div>\r\n");
}
}