Skip to content

Commit

Permalink
Move menu items to Administration
Browse files Browse the repository at this point in the history
  • Loading branch information
gdlcf88 committed Aug 21, 2023
1 parent 71be79e commit f42cb01
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,9 @@ private async Task ConfigureMainMenuAsync(MenuConfigurationContext context)
var l = context.GetLocalizer<DynamicFormResource>();
//Add main menu items.

var dynamicFormMenu = new ApplicationMenuItem(DynamicFormMenus.Prefix, displayName: l["Menu:DynamicForm"],
"/DynamicForm/FormTemplates/FormTemplate", icon: "fa fa-wpforms");
var dynamicFormMenu = new ApplicationMenuItem(DynamicFormMenus.Prefix,
displayName: l["Menu:DynamicForm"], "/DynamicForm/FormTemplates/FormTemplate", icon: "fa fa-wpforms");

context.Menu.AddItem(dynamicFormMenu);
context.Menu.GetAdministration().AddItem(dynamicFormMenu);
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,8 @@ private async Task ConfigureMainMenuAsync(MenuConfigurationContext context)

if (await context.IsGrantedAsync(DynamicFormPermissions.FormTemplate.Default))
{
context.Menu.AddItem(new ApplicationMenuItem(DynamicFormMenus.Prefix, displayName: l["Menu:DynamicForm"],
"~/DynamicForm/FormTemplates/FormTemplate", icon: "fa fa-wpforms"));
context.Menu.GetAdministration().AddItem(new ApplicationMenuItem(DynamicFormMenus.Prefix,
displayName: l["Menu:DynamicForm"], "~/DynamicForm/FormTemplates/FormTemplate", icon: "fa fa-wpforms"));
}
}
}

0 comments on commit f42cb01

Please sign in to comment.