diff --git a/src/Umbraco.Web.UI.Client/src/common/services/tree.service.js b/src/Umbraco.Web.UI.Client/src/common/services/tree.service.js index b34cd72c79..ff079dde36 100644 --- a/src/Umbraco.Web.UI.Client/src/common/services/tree.service.js +++ b/src/Umbraco.Web.UI.Client/src/common/services/tree.service.js @@ -234,7 +234,7 @@ function treeService($q, treeResource, iconHelper, notificationsService, $rootSc .then(function(data) { //this will be called once the tree app data has loaded var result = { - name: section, + name: data.name, alias: section, root: data }; diff --git a/src/Umbraco.Web/Trees/ApplicationTreeController.cs b/src/Umbraco.Web/Trees/ApplicationTreeController.cs index de013c79c6..5ef3fa0afe 100644 --- a/src/Umbraco.Web/Trees/ApplicationTreeController.cs +++ b/src/Umbraco.Web/Trees/ApplicationTreeController.cs @@ -13,6 +13,8 @@ using Umbraco.Web.WebApi; using Umbraco.Web.WebApi.Filters; using Constants = Umbraco.Core.Constants; +using umbraco; + namespace Umbraco.Web.Trees { @@ -47,11 +49,15 @@ namespace Umbraco.Web.Trees var appTrees = ApplicationContext.Current.Services.ApplicationTreeService.GetApplicationTrees(application, true).ToArray(); if (appTrees.Count() == 1) { - return GetRootForSingleAppTree( + var tree = GetRootForSingleAppTree( appTrees.Single(), Constants.System.Root.ToString(CultureInfo.InvariantCulture), queryStrings, application); + + //PP: should this be further down in the logic? + tree.Title = ui.Text("sections", application); + return tree; } var collection = new TreeNodeCollection(); @@ -62,7 +68,9 @@ namespace Umbraco.Web.Trees collection.Add(rootNode); } - return SectionRootNode.CreateMultiTreeSectionRoot(rootId, collection); + var multiTree = SectionRootNode.CreateMultiTreeSectionRoot(rootId, collection); + multiTree.Title = ui.Text("sections", application); + return multiTree; } ///