Display conditions - Seperate list conditions into their own type

This commit is contained in:
Robert committed 2020-08-13 17:24:16 +02:00
1 parent c0e1e60e5e
commit 0516ccc658
22 files changed
+692 -218

No files matched your search

@@ -154,8 +154,15 @@ namespace Artemis.Core.Services
? new DisplayConditionGroup(null, renderElement.RenderElementEntity.RootDisplayCondition)
: new DisplayConditionGroup(null);
displayCondition.Initialize(_dataModelService);
renderElement.DisplayConditionGroup = displayCondition;
try
{
displayCondition.Initialize(_dataModelService);
renderElement.DisplayConditionGroup = displayCondition;
}
catch (Exception e)
{
_logger.Warning(e, $"Failed to init display conditions for {renderElement}");
}
}
}
}