mirror of
https://github.com/Theodor-Springmann-Stiftung/hamann-ausgabe-core.git
synced 2025-10-30 01:35:32 +00:00
Results of SyntaxCheck -> extra State
This commit is contained in:
@@ -13,12 +13,10 @@ public class XMLStateController : Controller {
|
||||
private IHaDocumentWrappper _lib;
|
||||
private readonly IXMLInteractionService _xmlService;
|
||||
private readonly IXMLFileProvider _xmlProvider;
|
||||
private readonly IMonitorLoop _loop;
|
||||
public XMLStateController(IMonitorLoop loop, IHaDocumentWrappper lib, IXMLInteractionService xmlService, IXMLFileProvider xmlProvider) {
|
||||
public XMLStateController(IHaDocumentWrappper lib, IXMLInteractionService xmlService, IXMLFileProvider xmlProvider) {
|
||||
_lib = lib;
|
||||
_xmlService = xmlService;
|
||||
_xmlProvider = xmlProvider;
|
||||
_loop = loop;
|
||||
}
|
||||
|
||||
[HttpGet]
|
||||
@@ -26,7 +24,6 @@ public class XMLStateController : Controller {
|
||||
[FeatureGate(Features.AdminService)]
|
||||
[GenerateAntiforgeryTokenCookie]
|
||||
public IActionResult Index() {
|
||||
_loop.StartMonitorLoop();
|
||||
var library = _lib.GetLibrary();
|
||||
var roots = _xmlService.GetRootsList();
|
||||
if (roots == null) return error404();
|
||||
@@ -39,6 +36,7 @@ public class XMLStateController : Controller {
|
||||
|
||||
var model = new XMLStateViewModel("Dateiübersicht", gD, roots, hF, mF, vS) {
|
||||
ActiveFile = activeF,
|
||||
SyntaxCheck = _xmlService.Test()
|
||||
};
|
||||
return View("~/Views/Admin/Dynamic/XMLState.cshtml", model);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user