Merge pull request #2412 from umbraco/temp-U4-10840

Added in the create XML for the legacy UserControl based Create Dialog
This commit is contained in:
Robert
2018-01-23 14:38:25 +01:00
committed by GitHub
4 changed files with 4 additions and 2 deletions

View File

@@ -11,6 +11,7 @@
<header>Macro</header>
<usercontrol>/create/simple.ascx</usercontrol>
<tasks>
<create assembly="umbraco" type="macroTasks" />
<delete assembly="umbraco" type="macroTasks" />
</tasks>
</nodeType>

View File

@@ -11,6 +11,7 @@
<header>Macro</header>
<usercontrol>/create/simple.ascx</usercontrol>
<tasks>
<create assembly="umbraco" type="macroTasks" />
<delete assembly="umbraco" type="macroTasks" />
</tasks>
</nodeType>

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