mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2026-09-09 18:03:21 +00:00
ACS-8572: Support for reloading document list from outside (#10065)
* support for external document list reload * update docs [ci:force] * reset selection api and docs [ci:force]
This commit is contained in:
@@ -517,6 +517,15 @@ export class DocumentListComponent extends DataTableSchema implements OnInit, On
|
||||
if (this.columnsPresetKey) {
|
||||
this.setPresetKey(this.columnsPresetKey);
|
||||
}
|
||||
|
||||
this.documentListService.reload$.pipe(takeUntil(this.onDestroy$)).subscribe(() => {
|
||||
this.resetSelection();
|
||||
this.reload();
|
||||
});
|
||||
|
||||
this.documentListService.resetSelection$.pipe(takeUntil(this.onDestroy$)).subscribe(() => {
|
||||
this.resetSelection();
|
||||
});
|
||||
}
|
||||
|
||||
ngAfterContentInit() {
|
||||
|
||||
Reference in New Issue
Block a user