Fixed anoying lower case delete action on macro context tree
This commit is contained in:
@@ -30,7 +30,7 @@ namespace Umbraco.Web.Models.Trees
|
||||
/// <param name="name">The text to display for the menu item, will default to the IAction alias if not specified</param>
|
||||
internal MenuItem Add(IAction action, string name)
|
||||
{
|
||||
var item = new MenuItem(action);
|
||||
var item = new MenuItem(action, name);
|
||||
|
||||
DetectLegacyActionMenu(action.GetType(), item);
|
||||
|
||||
|
||||
@@ -65,7 +65,7 @@ namespace Umbraco.Web.Trees
|
||||
throw new InvalidOperationException("Could not resolve the confirmation view for the legacy action " + ActionDelete.Instance.Alias);
|
||||
menuItem.LaunchDialogView(
|
||||
legacyConfirmView.Result,
|
||||
Services.TextService.Localize("general/delete"));
|
||||
Services.TextService.Localize(string.Format("general/{0}", ActionDelete.Instance.Alias)));
|
||||
|
||||
return menu;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user