Fix availability and content name (WIP)

This commit is contained in:
Stephan
2018-04-18 16:04:33 +02:00
parent 4f17ecbdee
commit 5b1bdd84ee
6 changed files with 83 additions and 34 deletions

View File

@@ -30,7 +30,7 @@ namespace Umbraco.Web.Models.Mapping
Language = x,
Mandatory = x.Mandatory,
Name = source.GetName(x.Id),
Exists = source.HasVariation(x.Id), // fixme - what's the purpose? "exists" or "published"? exists is a new thing?
Exists = source.IsCultureAvailable(x.Id), // segments ??
PublishedState = source.PublishedState.ToString(),
//Segment = ?? We'll need to populate this one day when we support segments
}).ToList();