From d4372375edb9f796b3a682dab94ada9f80509903 Mon Sep 17 00:00:00 2001 From: sivakumar414ram Date: Tue, 28 Jul 2020 16:31:50 +0530 Subject: [PATCH] * Made selectMode optioanl on contentNodeSelectorInterface --- .../lib/content-node-selector/content-node-dialog.service.ts | 3 --- .../content-node-selector.component-data.interface.ts | 2 +- 2 files changed, 1 insertion(+), 4 deletions(-) diff --git a/lib/content-services/src/lib/content-node-selector/content-node-dialog.service.ts b/lib/content-services/src/lib/content-node-selector/content-node-dialog.service.ts index 6e3e8fd7964..abd4323abfb 100644 --- a/lib/content-services/src/lib/content-node-selector/content-node-dialog.service.ts +++ b/lib/content-services/src/lib/content-node-selector/content-node-dialog.service.ts @@ -140,7 +140,6 @@ export class ContentNodeDialogService { const data: ContentNodeSelectorComponentData = { title: this.getTitleTranslation(action, contentEntry.name), actionName: action, - selectionMode: 'single', currentFolderId: contentEntry.parentId, imageResolver: this.imageResolver.bind(this), where: '(isFolder=true)', @@ -183,7 +182,6 @@ export class ContentNodeDialogService { const data: ContentNodeSelectorComponentData = { title: this.getTitleTranslation(action, this.translation.instant('DROPDOWN.MY_FILES_OPTION')), actionName: action, - selectionMode: 'single', currentFolderId: contentEntry.id, imageResolver: this.imageResolver.bind(this), isSelectionValid: this.hasAllowableOperationsOnNodeFolder.bind(this), @@ -211,7 +209,6 @@ export class ContentNodeDialogService { const data: ContentNodeSelectorComponentData = { title: this.getTitleTranslation(action, this.translation.instant('DROPDOWN.MY_FILES_OPTION')), actionName: action, - selectionMode: 'single', currentFolderId: contentEntry.id, imageResolver: this.imageResolver.bind(this), isSelectionValid: (entry: Node) => entry.isFile, diff --git a/lib/content-services/src/lib/content-node-selector/content-node-selector.component-data.interface.ts b/lib/content-services/src/lib/content-node-selector/content-node-selector.component-data.interface.ts index bd15647b3a7..b59c7c6569e 100644 --- a/lib/content-services/src/lib/content-node-selector/content-node-selector.component-data.interface.ts +++ b/lib/content-services/src/lib/content-node-selector/content-node-selector.component-data.interface.ts @@ -27,7 +27,7 @@ export interface ContentNodeSelectorComponentData { rowFilter?: any; where?: string; imageResolver?: any; - selectionMode: string; + selectionMode?: string; isSelectionValid?: (entry: Node) => boolean; breadcrumbTransform?: (node) => any; excludeSiteContent?: string[];