From 0d0f6227caa3a41aa343c716a2f9f9ef73df6642 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Niels=20Lyngs=C3=B8?= Date: Thu, 25 Jun 2020 22:10:42 +0200 Subject: [PATCH] Finished Todo, gets name of documentType if copying all entities in an infinite editor --- .../views/propertyeditors/blocklist/blocklist.component.js | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/Umbraco.Web.UI.Client/src/views/propertyeditors/blocklist/blocklist.component.js b/src/Umbraco.Web.UI.Client/src/views/propertyeditors/blocklist/blocklist.component.js index 00a099119f..597f0bf588 100644 --- a/src/Umbraco.Web.UI.Client/src/views/propertyeditors/blocklist/blocklist.component.js +++ b/src/Umbraco.Web.UI.Client/src/views/propertyeditors/blocklist/blocklist.component.js @@ -23,7 +23,8 @@ require: { umbProperty: "?^umbProperty", umbVariantContent: '?^^umbVariantContent', - umbVariantContentEditors: '?^^umbVariantContentEditors' + umbVariantContentEditors: '?^^umbVariantContentEditors', + umbElementEditorContent: '?^^umbElementEditorContent' } }); @@ -403,8 +404,9 @@ var contentNodeName = ""; if(vm.umbVariantContent) { contentNodeName = vm.umbVariantContent.editor.content.name; + } else if (vm.umbElementEditorContent) { + contentNodeName = vm.umbElementEditorContent.model.documentType.name } - // TODO: check if we are in an overlay and then lets get the Label of this block. localizationService.localize("clipboard_labelForArrayOfItemsFrom", [vm.model.label, contentNodeName]).then(function(localizedLabel) { clipboardService.copyArray("elementTypeArray", aliases, elementTypesToCopy, localizedLabel, "icon-thumbnail-list", vm.model.id);