This commit is contained in:
Giuseppe Digilio
2018-05-21 17:06:38 +02:00
parent d43d36513e
commit 95d6527e31

View File

@@ -50,7 +50,7 @@ export class AuthNavMenuComponent implements OnInit {
this.showAuth = this.store.select(routerStateSelector)
.filter((router: RouterReducerState) => isNotUndefined(router) && isNotUndefined(router.state))
.map((router: RouterReducerState) => {
return router.state.url !== LOGIN_ROUTE && router.state.url !== LOGOUT_ROUTE;
return !router.state.url.startsWith(LOGIN_ROUTE) && !router.state.url.startsWith(LOGOUT_ROUTE);
});
}
}