feature: document handlers

This commit is contained in:
Gary Sharp
2022-12-03 14:32:05 +11:00
parent 96cccab958
commit 13e666d95a
26 changed files with 1027 additions and 120 deletions
+4
View File
@@ -3,9 +3,12 @@ using Disco.Models.Services.Job;
using Disco.Models.Services.Jobs.JobLists;
using Disco.Models.Services.Plugins.Details;
using Disco.Models.UI.Job;
using Disco.Services.Plugins;
using Disco.Services.Plugins.Features.DocumentHandlerProvider;
using Disco.Web.Models.Shared;
using System;
using System.Collections.Generic;
using System.Linq;
namespace Disco.Web.Models.Job
{
@@ -22,6 +25,7 @@ namespace Disco.Web.Models.Job
Target = Job,
Templates = AvailableDocumentTemplates,
TemplatePackages = AvailableDocumentTemplatePackages,
HandlersPresent = Plugins.GetPluginFeatures(typeof(DocumentHandlerProviderFeature)).Any(),
};
public List<Disco.Models.Repository.JobSubType> UpdatableJobSubTypes { get; set; }