feature: specify device profile/batch during pending enrolment
This commit is contained in:
@@ -2,6 +2,7 @@
|
||||
using Disco.Services.Authorization;
|
||||
using Disco.Services.Plugins.Features.UIExtension;
|
||||
using Disco.Services.Web;
|
||||
using System.Linq;
|
||||
using System.Web.Mvc;
|
||||
|
||||
namespace Disco.Web.Areas.Config.Controllers
|
||||
@@ -28,6 +29,10 @@ namespace Disco.Web.Areas.Config.Controllers
|
||||
{
|
||||
var m = new Models.Enrolment.StatusModel();
|
||||
|
||||
m.DefaultDeviceProfileId = Database.DiscoConfiguration.DeviceProfiles.DefaultDeviceProfileId;
|
||||
m.DeviceProfiles = Database.DeviceProfiles.ToList();
|
||||
m.DeviceBatches = Database.DeviceBatches.ToList();
|
||||
|
||||
// UI Extensions
|
||||
UIExtensions.ExecuteExtensions<ConfigEnrolmentStatusModel>(this.ControllerContext, m);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user