Hide the Nested Content "add content" header when there are items in the clipboard
This commit is contained in:
committed by
Sebastiaan Janssen
parent
0720e3bb30
commit
455344105d
@@ -265,6 +265,7 @@
|
||||
});
|
||||
|
||||
dialog.title = dialog.pasteItems.length > 0 ? labels.grid_addElement : labels.content_createEmpty;
|
||||
dialog.hideHeader = dialog.pasteItems.length > 0;
|
||||
|
||||
dialog.clickClearPaste = function ($event) {
|
||||
$event.stopPropagation();
|
||||
@@ -272,7 +273,7 @@
|
||||
clipboardService.clearEntriesOfType("elementType", contentTypeAliases);
|
||||
clipboardService.clearEntriesOfType("elementTypeArray", contentTypeAliases);
|
||||
dialog.pasteItems = [];// This dialog is not connected via the clipboardService events, so we need to update manually.
|
||||
dialog.overlayMenu.hideHeader = false;
|
||||
dialog.hideHeader = false;
|
||||
};
|
||||
|
||||
if (dialog.availableItems.length === 1 && dialog.pasteItems.length === 0) {
|
||||
|
||||
Reference in New Issue
Block a user