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:
Denys Vuika
2024-08-09 07:33:56 -04:00
committed by GitHub
parent 80a70cf789
commit 9966cf4405
5 changed files with 122 additions and 25 deletions
@@ -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() {