Skip to content

Commit

Permalink
feat(searchResult): not active tool when already actived
Browse files Browse the repository at this point in the history
  • Loading branch information
mbarbeau committed Sep 12, 2019
1 parent b43184b commit 5e859c2
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/app/pages/portal/portal.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -427,8 +427,9 @@ export class PortalComponent implements OnInit, OnDestroy {
// if (this.mediaService.media$.value === Media.Mobile) {
// this.closeToastPanel();
// }

this.toolbox.activateTool('searchResults');
if (!this.toolbox.activeTool$.value || this.toolbox.activeTool$.value.name !== 'searchResults') {
this.toolbox.activateTool('searchResults');
}
this.openSidenav();
}

Expand Down

0 comments on commit 5e859c2

Please sign in to comment.