restores the MB enable flag

This commit is contained in:
Shannon
2019-10-29 11:02:18 +11:00
parent cd89308711
commit 2c9939e516
14 changed files with 141 additions and 74 deletions

View File

@@ -39,7 +39,8 @@ namespace Umbraco.ModelsBuilder.Embedded.Compose
ContentModelBinder.ModelBindingException += ContentModelBinder_ModelBindingException;
FileService.SavingTemplate += FileService_SavingTemplate;
if (_config.Enable)
FileService.SavingTemplate += FileService_SavingTemplate;
if (_config.ModelsMode.IsLiveNotPure())
_liveModelsProvider.Install();
@@ -81,7 +82,7 @@ namespace Umbraco.ModelsBuilder.Embedded.Compose
{
var settings = new Dictionary<string, object>
{
{"enabled", true}
{"enabled", _config.Enable}
};
return settings;