Added TreeAlias to TreeNodesRenderingNotification (#10024)
This commit is contained in:
@@ -12,7 +12,6 @@ using Umbraco.Cms.Web.BackOffice.Controllers;
|
||||
using Umbraco.Cms.Web.Common.Filters;
|
||||
using Umbraco.Cms.Web.Common.ModelBinders;
|
||||
using Umbraco.Extensions;
|
||||
using Constants = Umbraco.Cms.Core.Constants;
|
||||
|
||||
namespace Umbraco.Cms.Web.BackOffice.Trees
|
||||
{
|
||||
@@ -150,7 +149,7 @@ namespace Umbraco.Cms.Web.BackOffice.Trees
|
||||
node.RoutePath = "#";
|
||||
|
||||
//raise the event
|
||||
await _eventAggregator.PublishAsync(new TreeNodesRenderingNotification(nodes, queryStrings));
|
||||
await _eventAggregator.PublishAsync(new TreeNodesRenderingNotification(nodes, queryStrings, TreeAlias));
|
||||
|
||||
return nodes;
|
||||
}
|
||||
|
||||
@@ -22,10 +22,16 @@ namespace Umbraco.Cms.Web.BackOffice.Trees
|
||||
/// </summary>
|
||||
public FormCollection QueryString { get; }
|
||||
|
||||
public TreeNodesRenderingNotification(TreeNodeCollection nodes, FormCollection queryString)
|
||||
/// <summary>
|
||||
/// The alias of the tree rendered
|
||||
/// </summary>
|
||||
public string TreeAlias { get; }
|
||||
|
||||
public TreeNodesRenderingNotification(TreeNodeCollection nodes, FormCollection queryString, string treeAlias)
|
||||
{
|
||||
Nodes = nodes;
|
||||
QueryString = queryString;
|
||||
TreeAlias = treeAlias;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user