Some updates to description and code style

This commit is contained in:
Sebastiaan Janssen
2017-07-17 17:50:38 +02:00
parent b425edbb45
commit 3a5584a1c1
2 changed files with 8 additions and 5 deletions

View File

@@ -172,10 +172,13 @@ namespace Umbraco.Web.Models.Mapping
//add the entity type to the config
listViewConfig["entityType"] = entityType;
//Override Tab Label if tabName is provided
if (listViewConfig.ContainsKey("tabName") && !String.IsNullOrWhiteSpace(listViewConfig["tabName"].ToString())) {
listViewTab.Label = listViewConfig["tabName"].ToString();
}
//Override Tab Label if tabName is provided
if (listViewConfig.ContainsKey("tabName"))
{
var configTabName = listViewConfig["tabName"];
if (configTabName != null && string.IsNullOrWhiteSpace(configTabName.ToString()) == false)
listViewTab.Label = configTabName.ToString();
}
var listViewProperties = new List<ContentPropertyDisplay>();
listViewProperties.Add(new ContentPropertyDisplay