Update: Additional UI Extension Hooks
This commit is contained in:
@@ -36,13 +36,16 @@ namespace Disco.Web.Controllers
|
||||
{
|
||||
DefaultDeviceProfileId = dbContext.DiscoConfiguration.DeviceProfiles.DefaultAddDeviceOfflineDeviceProfileId
|
||||
};
|
||||
m.DeviceBatches = dbContext.DeviceBatches.ToSelectListItems();
|
||||
m.DeviceBatches = dbContext.DeviceBatches.ToList();
|
||||
m.DeviceProfiles = dbContext.DeviceProfiles.ToList();
|
||||
if (m.DefaultDeviceProfileId == 0)
|
||||
{
|
||||
m.DeviceProfiles.Insert(0, new DeviceProfile() { Id = 0, Name = "Select a Device Profile" });
|
||||
}
|
||||
|
||||
// UI Extensions
|
||||
UIExtensions.ExecuteExtensions<DeviceAddOfflineModel>(this.ControllerContext, m);
|
||||
|
||||
return View(m);
|
||||
}
|
||||
[HttpPost]
|
||||
|
||||
Reference in New Issue
Block a user