[Monitor Dashboard & Library | develop]: search.module.ts: Set in landing routes data: {hasMenuSearchBar: true} to show search bar in menu. | navigationBar.component.ts: If properties.searchLinkToAll is undefined, navigate to properties.searchLinkToAll from menu search bar.

This commit is contained in:
Konstantina Galouni 2023-07-07 10:53:10 +03:00
parent 3aee0bcca2
commit 110c854523
1 changed files with 1 additions and 1 deletions

View File

@ -258,7 +258,7 @@ export class NavigationBarComponent implements OnInit, OnDestroy, OnChanges {
parameterNames.push("f0"); parameterNames.push("f0");
parameterValues.push("q"); parameterValues.push("q");
} }
this.router.navigate([this.properties.searchLinkToAll], {queryParams: this.routerHelper.createQueryParams(parameterNames, parameterValues)}); this.router.navigate([this.properties.searchLinkToAll ? this.properties.searchLinkToAll : this.properties.searchLinkToResults], {queryParams: this.routerHelper.createQueryParams(parameterNames, parameterValues)});
if(canvas) { if(canvas) {
this.closeCanvas(canvas); this.closeCanvas(canvas);
} }