Refactors how the 'OpensDialog' gets assigned to menu items, fixes permission check on rollback

This commit is contained in:
Shannon
2018-10-30 00:34:43 +11:00
parent b8a65febf4
commit 77f4f0bbad
19 changed files with 89 additions and 80 deletions

View File

@@ -351,7 +351,8 @@ namespace Umbraco.Web.Trees
var menu = new MenuItemCollection();
menu.Items.Add(new MenuItem("emptyRecycleBin", Services.TextService)
{
Icon = "trash"
Icon = "trash",
OpensDialog = true
});
menu.Items.Add(new RefreshNode(Services.TextService, true));
return menu;