#138 add/remove individual device flags UI

This commit is contained in:
Gary Sharp
2024-01-14 18:29:58 +11:00
parent 6ce6e2cccf
commit aee467cb53
15 changed files with 1573 additions and 68 deletions
+8 -5
View File
@@ -1,4 +1,5 @@
using Disco.Models.Services.Documents;
using Disco.Models.Repository;
using Disco.Models.Services.Documents;
using Disco.Models.Services.Jobs.JobLists;
using Disco.Models.UI.Device;
using Disco.Services.Plugins;
@@ -13,20 +14,20 @@ namespace Disco.Web.Models.Device
{
public Disco.Models.Repository.Device Device { get; set; }
public List<Disco.Models.Repository.DeviceProfile> DeviceProfiles { get; set; }
public List<DeviceProfile> DeviceProfiles { get; set; }
public HashSet<int> DecommissionedDeviceProfileIds { get; set; }
public Disco.Models.BI.Config.OrganisationAddress DeviceProfileDefaultOrganisationAddress { get; set; }
public List<PluginFeatureManifest> DeviceProfileCertificateProviders { get; set; }
public List<PluginFeatureManifest> DeviceProfileWirelessProfileProviders { get; set; }
public List<Disco.Models.Repository.DeviceBatch> DeviceBatches { get; set; }
public List<DeviceBatch> DeviceBatches { get; set; }
public HashSet<int> DecommissionedDeviceBatchIds { get; set; }
public JobTableModel Jobs { get; set; }
public List<Disco.Models.Repository.DeviceCertificate> Certificates { get; set; }
public List<DeviceCertificate> Certificates { get; set; }
public string OrganisationUnit { get; set; }
public List<Disco.Models.Repository.DocumentTemplate> DocumentTemplates { get; set; }
public List<DocumentTemplate> DocumentTemplates { get; set; }
public List<DocumentTemplatePackage> DocumentTemplatePackages { get; set; }
public GenerateDocumentControlModel GenerateDocumentControlModel => new GenerateDocumentControlModel()
{
@@ -36,6 +37,8 @@ namespace Disco.Web.Models.Device
HandlersPresent = Plugins.GetPluginFeatures(typeof(DocumentHandlerProviderFeature)).Any(),
};
public List<DeviceFlag> AvailableDeviceFlags { get; set; }
public Dictionary<string, string> AssignedUserDetails { get; set; }
public bool HasAssignedUserPhoto { get; set; }
}