Skip to content

Commit

Permalink
fix: fix dashboards
Browse files Browse the repository at this point in the history
  • Loading branch information
MishaZhem committed Jul 12, 2024
1 parent 1528535 commit 8525e7d
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 9 deletions.
9 changes: 1 addition & 8 deletions apps/taiga-lumbermill/src/components/app/app.component.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
import type {OnInit} from '@angular/core';
import {ChangeDetectionStrategy, Component} from '@angular/core';
import type {Router} from '@angular/router';
import {RouterModule} from '@angular/router';
import {TuiRoot} from '@taiga-ui/core';

Expand All @@ -13,11 +11,6 @@ import {NavigationComponent} from '../navigation/navigation.component';
templateUrl: './app.component.html',
changeDetection: ChangeDetectionStrategy.OnPush,
})
export class AppComponent implements OnInit {
export class AppComponent {
public title = 'taiga-lumbermill';
constructor(private readonly router: Router) {}

public ngOnInit(): void {
this.router.navigate(['/dashboards']);
}
}
5 changes: 4 additions & 1 deletion apps/taiga-lumbermill/src/components/app/app.routes.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,7 @@ import type {Route} from '@angular/router';

import {AppComponent} from './app.component';

export const appRoutes: Route[] = [{path: 'dashboards', component: AppComponent}];
export const appRoutes: Route[] = [
{path: 'dashboards', component: AppComponent},
{path: '**', redirectTo: 'dashboards'},
];

0 comments on commit 8525e7d

Please sign in to comment.