feature: pending device enrollment approval

This commit is contained in:
Gary Sharp
2024-01-21 14:06:11 +11:00
parent 6af83cbdb2
commit 37e2e5a08c
33 changed files with 1379 additions and 344 deletions
+3
View File
@@ -25,5 +25,8 @@ namespace Disco.Models.ClientServices
public List<Certificate> Certificates { get; set; }
public List<WirelessProfile> WirelessProfiles { get; set; }
public string PendingSessionId { get; set; }
public string PendingAuthorization { get; set; }
}
}
@@ -1,4 +1,5 @@
using Disco.Models.ClientServices.EnrolmentInformation;
using System;
namespace Disco.Models.ClientServices
{
@@ -26,5 +27,10 @@ namespace Disco.Models.ClientServices
public bool RequireReboot { get; set; }
public string ErrorMessage { get; set; }
public bool IsPending { get; set; }
public string PendingAuthorization { get; set; }
public string PendingReason { get; set; }
public DateTimeOffset PendingTimeout { get; set; }
}
}
@@ -1,13 +1,8 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Disco.Models.UI.Config.Enrolment
namespace Disco.Models.UI.Config.Enrolment
{
public interface ConfigEnrolmentIndexModel : BaseUIModel
{
string MacSshUsername { get; set; }
int PendingTimeoutMinutes { get; set; }
}
}
+4 -1
View File
@@ -1,4 +1,6 @@
using Disco.Models.Services.Jobs.JobLists;
using Disco.Models.ClientServices;
using Disco.Models.Services.Jobs.JobLists;
using System.Collections.Generic;
namespace Disco.Models.UI.Job
{
@@ -6,5 +8,6 @@ namespace Disco.Models.UI.Job
{
JobTableModel MyJobs { get; set; }
JobTableModel StaleJobs { get; set; }
List<EnrolResponse> PendingEnrollments { get; set; }
}
}