From 3c9041b00ee6ce64ec4ce6fe2b8f81d77c1da108 Mon Sep 17 00:00:00 2001 From: Shannon Date: Sun, 4 Jun 2017 22:57:49 +0200 Subject: [PATCH] adds refresh to content type node --- src/Umbraco.Web/Trees/ContentBlueprintTreeController.cs | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/src/Umbraco.Web/Trees/ContentBlueprintTreeController.cs b/src/Umbraco.Web/Trees/ContentBlueprintTreeController.cs index 65538778e4..1b4af0f72b 100644 --- a/src/Umbraco.Web/Trees/ContentBlueprintTreeController.cs +++ b/src/Umbraco.Web/Trees/ContentBlueprintTreeController.cs @@ -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(Services.TextService.Localize(string.Format("actions/{0}", ActionRefresh.Instance.Alias)), true); + return menu; + } menu.Items.Add(Services.TextService.Localize(string.Format("actions/{0}", ActionDelete.Instance.Alias)));