Skip to content

Commit

Permalink
Change ManageSiteMap #785
Browse files Browse the repository at this point in the history
  • Loading branch information
KrzysztofPajak committed Mar 31, 2020
1 parent c68d781 commit a0d8b53
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion Grand.Framework/Menu/IAdminMenuPlugin.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
using Grand.Core.Plugins;
using System.Threading.Tasks;

namespace Grand.Framework.Menu
{
Expand All @@ -11,6 +12,6 @@ public interface IAdminMenuPlugin : IPlugin
/// Manage sitemap. You can use "SystemName" of menu items to manage existing sitemap or add a new menu item.
/// </summary>
/// <param name="rootNode">Root node of the sitemap.</param>
void ManageSiteMap(SiteMapNode rootNode);
Task ManageSiteMap(SiteMapNode rootNode);
}
}
2 changes: 1 addition & 1 deletion Grand.Web/Areas/Admin/Views/Shared/Menu.cshtml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
var adminMenuPlugins = pluginFinder.GetPlugins<IAdminMenuPlugin>().ToList();
foreach (var adminMenuPlugin in adminMenuPlugins)
{
adminMenuPlugin.ManageSiteMap(rootNode);
await adminMenuPlugin.ManageSiteMap(rootNode);
}
//"Plugins" menu item should be visible when it has some child nodes
var pluginNode = rootNode.ChildNodes.FirstOrDefault(x => x.SystemName == "Third party plugins");
Expand Down

0 comments on commit a0d8b53

Please sign in to comment.