fixes up legacy trees with the correct alias and forces legacy root nodes to load the dashboard route.

This commit is contained in:
Shannon
2013-08-15 12:57:56 +10:00
parent 3b749073d7
commit 66cdd90994
3 changed files with 5 additions and 3 deletions

View File

@@ -29,6 +29,8 @@ function treeService($q, treeResource, iconHelper, notificationsService, $rootSc
if (treeNodes[i].metaData && treeNodes[i].metaData["treeAlias"]) {
//this is a root node
treeNodes[i].routePath = section;
//we're going to remove any js callbacks from legacy tree nodes here!
treeNodes[i].metaData["jsClickCallback"] = null;
}
else {
var treeAlias = this.getTreeAlias(treeNodes[i]);

View File

@@ -139,7 +139,7 @@ namespace Umbraco.Web.Trees
{
Children = legacyAttempt.Result
};
sectionRoot.AdditionalData.Add("treeType", Type.GetType(configTree.Type).FullName);
sectionRoot.AdditionalData.Add("treeAlias", configTree.Alias);
return sectionRoot;
}

View File

@@ -284,7 +284,7 @@ namespace Umbraco.Web.Trees
};
if (isRoot)
{
node.AdditionalData.Add("treeType", xmlTreeNode.TreeType);
node.AdditionalData.Add("treeAlias", xmlTreeNode.TreeType);
}
//This is a special case scenario, we know that content/media works based on the normal Belle routing/editing so we'll ensure we don't