* Made selectMode optioanl on contentNodeSelectorInterface (#5921)

This commit is contained in:
siva kumar
2020-07-28 18:05:31 +05:30
committed by GitHub
parent b331c1422d
commit efc6432d1c
2 changed files with 1 additions and 4 deletions

View File

@@ -140,7 +140,6 @@ export class ContentNodeDialogService {
const data: ContentNodeSelectorComponentData = { const data: ContentNodeSelectorComponentData = {
title: this.getTitleTranslation(action, contentEntry.name), title: this.getTitleTranslation(action, contentEntry.name),
actionName: action, actionName: action,
selectionMode: 'single',
currentFolderId: contentEntry.parentId, currentFolderId: contentEntry.parentId,
imageResolver: this.imageResolver.bind(this), imageResolver: this.imageResolver.bind(this),
where: '(isFolder=true)', where: '(isFolder=true)',
@@ -183,7 +182,6 @@ export class ContentNodeDialogService {
const data: ContentNodeSelectorComponentData = { const data: ContentNodeSelectorComponentData = {
title: this.getTitleTranslation(action, this.translation.instant('DROPDOWN.MY_FILES_OPTION')), title: this.getTitleTranslation(action, this.translation.instant('DROPDOWN.MY_FILES_OPTION')),
actionName: action, actionName: action,
selectionMode: 'single',
currentFolderId: contentEntry.id, currentFolderId: contentEntry.id,
imageResolver: this.imageResolver.bind(this), imageResolver: this.imageResolver.bind(this),
isSelectionValid: this.hasAllowableOperationsOnNodeFolder.bind(this), isSelectionValid: this.hasAllowableOperationsOnNodeFolder.bind(this),
@@ -211,7 +209,6 @@ export class ContentNodeDialogService {
const data: ContentNodeSelectorComponentData = { const data: ContentNodeSelectorComponentData = {
title: this.getTitleTranslation(action, this.translation.instant('DROPDOWN.MY_FILES_OPTION')), title: this.getTitleTranslation(action, this.translation.instant('DROPDOWN.MY_FILES_OPTION')),
actionName: action, actionName: action,
selectionMode: 'single',
currentFolderId: contentEntry.id, currentFolderId: contentEntry.id,
imageResolver: this.imageResolver.bind(this), imageResolver: this.imageResolver.bind(this),
isSelectionValid: (entry: Node) => entry.isFile, isSelectionValid: (entry: Node) => entry.isFile,

View File

@@ -27,7 +27,7 @@ export interface ContentNodeSelectorComponentData {
rowFilter?: any; rowFilter?: any;
where?: string; where?: string;
imageResolver?: any; imageResolver?: any;
selectionMode: string; selectionMode?: string;
isSelectionValid?: (entry: Node) => boolean; isSelectionValid?: (entry: Node) => boolean;
breadcrumbTransform?: (node) => any; breadcrumbTransform?: (node) => any;
excludeSiteContent?: string[]; excludeSiteContent?: string[];