[ACA-3603] Destination picker is not opening on My Files when clicking on Attach file widget (#5865)

* [ACA-3603] Destination picker is not opening on My Files when clicking on Attach file widget

* *

* * Fixed failing unit tests

* * Used openFileBrowseDialogByFolderId
This commit is contained in:
siva kumar
2020-08-13 17:15:01 +05:30
committed by GitHub
parent 418202cb24
commit eb5d0da079
8 changed files with 41 additions and 15 deletions

View File

@@ -102,6 +102,15 @@ export class ContentNodeDialogService {
}));
}
/**
* Opens a file browser at a default myFile location.
* shows files and folders in the dialog search result.
* @returns Information about the selected file(s)
*/
openFileBrowseDialogByDefaultLocation(): Observable<Node[]> {
return this.openFileBrowseDialogByFolderId('-my-');
}
/**
* Opens a folder browser at a chosen site location.
* @returns Information about the selected folder(s)

View File

@@ -18,7 +18,7 @@
import { Component, EventEmitter, Input, OnInit, Output, ViewChild, ViewEncapsulation, OnDestroy } from '@angular/core';
import { SitesService, LogService } from '@alfresco/adf-core';
import { SitePaging, SiteEntry } from '@alfresco/js-api';
import { MatSelect } from '@angular/material/select';
import { MatSelect, MatSelectChange } from '@angular/material/select';
import { Subject } from 'rxjs';
import { takeUntil } from 'rxjs/operators';
@@ -118,7 +118,7 @@ export class DropdownSitesComponent implements OnInit, OnDestroy {
return event.target.scrollTop >= (event.target.scrollHeight - event.target.offsetHeight - this.ITEM_HEIGHT_TO_WAIT_BEFORE_LOAD_NEXT);
}
selectedSite(event: any) {
selectedSite(event: MatSelectChange) {
this.change.emit(event.value);
}