[ACS-5654] Retain filter header in document list. (#3381)

* [ACS-5654] Retain filter header in document list.

* [ACS-5654 Unit tests]

* [ACS-5654] Unit test update
This commit is contained in:
Aayush Rohila
2023-08-22 12:28:40 +05:30
committed by GitHub
parent 9d1a6ae57b
commit bc9c58176f
2 changed files with 11 additions and 1 deletions

View File

@@ -95,7 +95,6 @@ export class FilesComponent extends PageComponent implements OnInit, OnDestroy {
this.route.queryParamMap.subscribe((queryMap: Params) => {
this.queryParams = queryMap.params;
});
this.route.params.subscribe(({ folderId }: Params) => {
const nodeId = folderId || data.defaultNodeId;
@@ -129,6 +128,9 @@ export class FilesComponent extends PageComponent implements OnInit, OnDestroy {
});
this.columns = this.extensions.documentListPresets.files || [];
if (this.queryParams && Object.keys(this.queryParams).length > 0) {
this.isFilterHeaderActive = true;
}
}
ngOnDestroy() {