Finished Todo, gets name of documentType if copying all entities in an infinite editor
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user