Skip to content

Commit

Permalink
fix(ui): navbar hide only for route that starts by /auth (#4958)
Browse files Browse the repository at this point in the history
  • Loading branch information
richardlt authored Feb 4, 2020
1 parent 1e8b041 commit 99c0d33
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ui/src/app/app.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ export class AppComponent implements OnInit {

this.eventsRouteSubscription = this._router.events.subscribe(e => {
if (e instanceof NavigationStart) {
this.hideNavBar = (e.url.indexOf('/auth') !== -1)
this.hideNavBar = e.url.startsWith('/auth')
}
});
}
Expand Down

0 comments on commit 99c0d33

Please sign in to comment.