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:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user