Got a solution for legacy dialog trees with the new format trees, just committing all of the work in case i need to come back and reference some stuff I'm about to remove.

This commit is contained in:
Shannon
2013-09-04 17:36:05 +10:00
parent db79d87c08
commit be9c3b8996
9 changed files with 371 additions and 137 deletions

View File

@@ -58,15 +58,20 @@ namespace Umbraco.Web.Trees
{
if (id == Constants.System.Root.ToInvariantString())
{
//we need to append the recycle bin to the end
//we need to append the recycle bin to the end (if not in dialog mode)
var nodes = PerformGetTreeNodes(id, queryStrings);
nodes.Add(CreateTreeNode(
Constants.System.RecycleBinContent.ToInvariantString(),
queryStrings,
ui.GetText("general", "recycleBin"),
"icon-trash",
RecycleBinSmells,
queryStrings.GetValue<string>("application") + TreeAlias.EnsureStartsWith('/') + "/recyclebin"));
if (!IsDialog(queryStrings))
{
nodes.Add(CreateTreeNode(
Constants.System.RecycleBinContent.ToInvariantString(),
queryStrings,
ui.GetText("general", "recycleBin"),
"icon-trash",
RecycleBinSmells,
queryStrings.GetValue<string>("application") + TreeAlias.EnsureStartsWith('/') + "/recyclebin"));
}
return nodes;
}