Finished Todo, gets name of documentType if copying all entities in an infinite editor

This commit is contained in:
Niels Lyngsø
2020-06-25 22:10:42 +02:00
parent 869c37051c
commit 0d0f6227ca

View File

@@ -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);