This commit removes the `this.router.url` logic which was located in the
`workbench-layout.component.ts` file and moved it into the HTML template
section.
Signed-off-by: bryanmontalvan <bmontalv@redhat.com>
<block-ui>
<cd-navigation>
<div class="container-fluid h-100"
- [ngClass]="{'dashboard':isDashboardPage()} ">
- <cd-context></cd-context>
+ [ngClass]="{'dashboard': (router.url == '/dashboard' || router.url == '/dashboard_3')}">
+ <cd-context></cd-context>
<cd-breadcrumbs></cd-breadcrumbs>
<router-outlet></router-outlet>
</div>
private subs = new Subscription();
constructor(
- private router: Router,
+ public router: Router,
private summaryService: SummaryService,
private taskManagerService: TaskManagerService,
private faviconService: FaviconService
ngOnDestroy() {
this.subs.unsubscribe();
}
-
- isDashboardPage() {
- return this.router.url === '/dashboard' || this.router.url === '/dashboard_3';
- }
}