Fixed anoying lower case delete action on macro context tree

This commit is contained in:
Robert
2018-01-23 14:34:03 +01:00
parent d298388a7b
commit c68f832be6
2 changed files with 2 additions and 2 deletions

View File

@@ -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);

View File

@@ -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;
}