adds refresh to content type node

This commit is contained in:
Shannon
2017-06-04 22:57:49 +02:00
parent 7377b7614e
commit 3c9041b00e

View File

@@ -92,8 +92,12 @@ namespace Umbraco.Web.Trees
return menu;
}
var ct = Services.EntityService.Get(int.Parse(id), UmbracoObjectTypes.DocumentType);
//no menu if it's a content type
if (ct != null) return null;
//only refresh if it's a content type
if (ct != null)
{
menu.Items.Add<RefreshNode, ActionRefresh>(Services.TextService.Localize(string.Format("actions/{0}", ActionRefresh.Instance.Alias)), true);
return menu;
}
menu.Items.Add<ActionDelete>(Services.TextService.Localize(string.Format("actions/{0}", ActionDelete.Instance.Alias)));