[AAE-2202] Not able to search for files (#5569)

* [AAE-2202] Not able to search for files

* * fixd test

* * fixed panel test

* * fixed files search options

* * added docs
This commit is contained in:
dhrn
2020-03-31 16:06:35 +05:30
committed by GitHub
parent 6564ef256e
commit e06f871d73
15 changed files with 78 additions and 19 deletions

View File

@@ -25,4 +25,5 @@ export interface AttachFileWidgetDialogComponentData {
ecmHost: string;
context?: string;
isSelectionValid?: (entry: Node) => boolean;
showFilesInResult?: boolean;
}

View File

@@ -9,6 +9,7 @@
<adf-content-node-selector-panel *ngIf="isLoggedIn()"
id="attach-file-content-node"
[isSelectionValid]="data?.isSelectionValid"
[showFilesInResult]="data?.showFilesInResult"
(select)="onSelect($event)">
</adf-content-node-selector-panel>
</mat-dialog-content>

View File

@@ -53,7 +53,8 @@ export class AttachFileWidgetDialogService {
selected,
ecmHost,
context,
isSelectionValid: this.isNodeFile.bind(this)
isSelectionValid: this.isNodeFile.bind(this),
showFilesInResult: true
};
this.openLoginDialog(data, 'adf-attach-file-widget-dialog', '630px');