diff --git a/src/app/components/sidenav/directives/action.directive.spec.ts b/src/app/components/sidenav/directives/action.directive.spec.ts index cb1e7b8c7..5a652b808 100644 --- a/src/app/components/sidenav/directives/action.directive.spec.ts +++ b/src/app/components/sidenav/directives/action.directive.spec.ts @@ -44,7 +44,7 @@ describe('ActionDirective', () => { }); it('should navigate if action is route', () => { - directive.action = { route: 'dummy' }; + directive.action = { url: 'dummy' }; directive.onClick(); expect(routeMock.navigate).toHaveBeenCalled(); }); diff --git a/src/app/components/sidenav/directives/action.directive.ts b/src/app/components/sidenav/directives/action.directive.ts index b6d4ef4f3..2d5884d54 100644 --- a/src/app/components/sidenav/directives/action.directive.ts +++ b/src/app/components/sidenav/directives/action.directive.ts @@ -37,8 +37,8 @@ export class ActionDirective { @HostListener('click') onClick() { - if (this.action.route) { - this.router.navigate(this.getNavigationCommands(this.action.route)); + if (this.action.url) { + this.router.navigate(this.getNavigationCommands(this.action.url)); } else if (this.action.click) { this.store.dispatch({ type: this.action.click.action,