8000 fix(ui): navbar hide only for route that starts by /auth (#4958) · ovh/cds@99c0d33 · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Commit 99c0d33

Browse files
authored
fix(ui): navbar hide only for route that starts by /auth (#4958)
1 parent 1e8b041 commit 99c0d33

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ui/src/app/app.component.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ export class AppComponent implements OnInit {
101101

102102
this.eventsRouteSubscription = this._router.events.subscribe(e => {
103103
if (e instanceof NavigationStart) {
104-
this.hideNavBar = (e.url.indexOf('/auth') !== -1)
104+
this.hideNavBar = e.url.startsWith('/auth')
105105
}
106106
});
107107
}

0 commit comments

Comments
 (0)
0