mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2025-07-24 17:32:15 +00:00
[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:
@@ -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)
|
||||
|
@@ -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);
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user