diff --git a/src/app/app.routes.ts b/src/app/app.routes.ts index 9937628..16c1407 100644 --- a/src/app/app.routes.ts +++ b/src/app/app.routes.ts @@ -62,6 +62,24 @@ export const routes: Routes = [ (r) => r.ORDERS_ROUTES ), }, + { + path: 'payment-methods', + canActivate: [authGuard], + data: { requiredRole: 'Admin' }, + loadChildren: () => + import( + './features/components/payment-methods/payment-methods.routes' + ).then((r) => r.PAYMENT_METHODS_ROUTES), + }, + { + path: 'products', + canActivate: [authGuard], + data: { requiredRole: 'Admin' }, + loadChildren: () => + import('./features/components/products/products.routes').then( + (r) => r.PRODUCTS_ROUTES + ), + }, { path: 'access-denied', component: AccessDeniedComponent, diff --git a/src/app/features/components/dashboard/dashboard.routes.ts b/src/app/features/components/dashboard/dashboard.routes.ts index 4c95727..0d9659f 100644 --- a/src/app/features/components/dashboard/dashboard.routes.ts +++ b/src/app/features/components/dashboard/dashboard.routes.ts @@ -1,6 +1,6 @@ import { Routes } from '@angular/router'; import { DashboardPageComponent } from './dashboard-page/dashboard-page.component'; -// Importiere dein spezielles Layout für Auth-Seiten und alle Komponenten +import { DashboardComponent } from './dashboard/dashboard.component'; export const DASHBOARD_ROUTES: Routes = [ { path: '', redirectTo: 'home', pathMatch: 'full' }, @@ -9,4 +9,9 @@ export const DASHBOARD_ROUTES: Routes = [ component: DashboardPageComponent, title: 'Dashboard Übersicht', }, + { + path: 'kpi', + component: DashboardComponent, + title: 'kpi Übersicht', + }, ]; diff --git a/src/app/features/components/dashboard/dashboard/dashboard.component.ts b/src/app/features/components/dashboard/dashboard/dashboard.component.ts index 54617a9..d7bbd55 100644 --- a/src/app/features/components/dashboard/dashboard/dashboard.component.ts +++ b/src/app/features/components/dashboard/dashboard/dashboard.component.ts @@ -11,7 +11,7 @@ import { AnalyticsPeriod } from '../../../../core/enums/shared.enum'; imports: [CommonModule], templateUrl: './dashboard.component.html', }) -export class AdminDashboardComponent implements OnInit { +export class DashboardComponent implements OnInit { private analyticsService = inject(AnalyticsService); analytics$!: Observable; diff --git a/src/app/features/components/orders/orders.routes.ts b/src/app/features/components/orders/orders.routes.ts index d71b89c..6a58393 100644 --- a/src/app/features/components/orders/orders.routes.ts +++ b/src/app/features/components/orders/orders.routes.ts @@ -3,7 +3,7 @@ import { OrderListComponent } from './order-list/order-list.component'; export const ORDERS_ROUTES: Routes = [ { - path: '', + path: '1', component: OrderListComponent, title: '', }, diff --git a/src/app/features/components/payment-methods/payment-method-list/payment-method-list.component.html b/src/app/features/components/payment-methods/payment-method-list/payment-method-list.component.html index 8618b2e..2d2f607 100644 --- a/src/app/features/components/payment-methods/payment-method-list/payment-method-list.component.html +++ b/src/app/features/components/payment-methods/payment-method-list/payment-method-list.component.html @@ -2,15 +2,55 @@

Zahlungsmethoden verwalten

{{ selectedMethodId ? 'Methode bearbeiten' : 'Neue Methode' }}

- - - + +
+
+ +
+
+ +
+ - +
+ +
+ + +
+

Konfiguration

+ +
+
+
+
+
+ +
+
+
+
+ +
+
+
+
+ +
+
+
+ +
+ + +
+

Bestehende Methoden