This commit is contained in:
Tizian.Breuch
2025-10-10 12:19:04 +02:00
parent 8813dc21ee
commit 4924372087
3 changed files with 33 additions and 6 deletions

View File

@@ -91,16 +91,23 @@ export const routes: Routes = [
{
path: 'shop-info',
loadChildren: () =>
import(
'./features/components/shop-info/shop-info.routes'
).then((r) => r.SHOP_INFO_ROUTES),
import('./features/components/shop-info/shop-info.routes').then(
(r) => r.SHOP_INFO_ROUTES
),
},
{
path: 'supplier-list',
loadChildren: () =>
import(
'./features/components/suppliers/suppliers.routes'
).then((r) => r.SUPPLIERS_ROUTES),
import('./features/components/suppliers/suppliers.routes').then(
(r) => r.SUPPLIERS_ROUTES
),
},
{
path: 'users',
loadChildren: () =>
import('./features/components/users/users.routes').then(
(r) => r.USERS_ROUTES
),
},
],
},

View File

@@ -0,0 +1,11 @@
import { Routes } from '@angular/router';
import { UserListComponent } from './user-list/user-list.component';
export const USERS_ROUTES: Routes = [
{
path: '',
component: UserListComponent,
title: '',
},
];

View File

@@ -98,5 +98,14 @@
<span>supplier-list</span>
</div>
<div
class="nav-item"
[class.active]="activeRoute === 'users'"
(click)="setActive('users')"
>
<app-icon [iconName]="'placeholder'" [svgColor]="'#8e44ad'"></app-icon>
<span>users</span>
</div>
</nav>
</aside>