package tree is basically done, got the editor updated to work with the server data to display the initial screen and details

This commit is contained in:
Shannon
2016-06-12 21:39:29 +02:00
parent ba9315079b
commit 5a32e1a294
7 changed files with 315 additions and 234 deletions

View File

@@ -16,6 +16,7 @@ using umbraco.cms.businesslogic.packager;
using Umbraco.Core.Models.EntityBase;
using Umbraco.Core.Services;
using Constants = Umbraco.Core.Constants;
using Umbraco.Core.Services;
namespace Umbraco.Web.Trees
{
@@ -91,6 +92,17 @@ namespace Umbraco.Web.Trees
protected override MenuItemCollection GetMenuForNode(string id, FormDataCollection queryStrings)
{
var menu = new MenuItemCollection();
// Root actions
menu.Items.Add<ActionNew>(Services.TextService.Localize(string.Format("actions/{0}", ActionNew.Instance.Alias)))
.ConvertLegacyMenuItem(null, Constants.Trees.Packages, queryStrings.GetValue<string>("application"));
if (id == "created")
{
menu.Items.Add<RefreshNode, ActionRefresh>(
Services.TextService.Localize(string.Format("actions/{0}", ActionRefresh.Instance.Alias)), true);
}
return menu;
}
}