Fixes Publishing/Unpublishing variants and it's nuances

This commit is contained in:
Shannon
2018-05-07 23:22:52 +10:00
parent 7a92691bf5
commit 5a991c9424
21 changed files with 281 additions and 128 deletions

View File

@@ -71,10 +71,13 @@ namespace Umbraco.Web.Trees
else
{
var documentEntity = (IDocumentEntitySlim) entity;
if (!documentEntity.Published)
//fixme we need these statuses per variant but to do that we need to fix the issues listed in IDocumentEntitySlim
if (!documentEntity.Published)
node.SetNotPublishedStyle();
if (documentEntity.Edited)
node.SetHasUnpublishedVersionStyle();
//if (documentEntity.Edited)
// node.SetHasUnpublishedVersionStyle();
node.AdditionalData.Add("contentType", documentEntity.ContentTypeAlias);
}