feature: exports api refactoring
This commit is contained in:
@@ -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");
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
@@ -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>
|
||||
|
||||
@@ -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");
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user