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:
@@ -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>
|
||||
|
||||
@@ -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>
|
||||
|
||||
@@ -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