This commit is contained in:
smals-lade
2026-02-10 11:45:38 +01:00
parent 9f1fdb610d
commit fa2d48b965
2 changed files with 18 additions and 3 deletions
+11 -1
View File
@@ -125,6 +125,16 @@ export const routes: Routes = [
}
]
},
{
path: 'dependencies',
children: [
{
path: '',
loadComponent: () => import('./features/dependencies/dependency-list/dependency-list.component')
.then(m => m.DependencyListComponent)
}
]
},
{
path: 'persons',
children: [
@@ -177,4 +187,4 @@ export const routes: Routes = [
}
]
}
];
];
@@ -48,6 +48,12 @@ export class MainLayoutComponent implements OnInit {
route: '/environments',
color: '#ff9800'
},
{
title: 'Dependencies',
icon: '🔗',
route: '/dependencies',
color: '#00bcd4'
},
{
title: 'Persons',
icon: '👤',
@@ -77,7 +83,6 @@ export class MainLayoutComponent implements OnInit {
this.currentUser = this.authService.getCurrentUser();
this.activeRoute = this.router.url;
// Listen to route changes to update active route
this.router.events.pipe(
filter(event => event instanceof NavigationEnd)
).subscribe((event: any) => {
@@ -99,4 +104,4 @@ export class MainLayoutComponent implements OnInit {
logout(): void {
this.authService.logout();
}
}
}