diff --git a/src/app/app.component.html b/src/app/app.component.html
index 322f0d7..32018e0 100644
--- a/src/app/app.component.html
+++ b/src/app/app.component.html
@@ -1,6 +1,6 @@
-
-
-
+
+
diff --git a/src/app/app.component.ts b/src/app/app.component.ts
index 419acc1..f0b7d33 100644
--- a/src/app/app.component.ts
+++ b/src/app/app.component.ts
@@ -5,6 +5,7 @@ import { Router } from '@angular/router';
import { ViewChild } from '@angular/core';
import { MatSidenav } from '@angular/material/sidenav';
import { NavService } from './components/menu-list-item/nav.service';
+import { NavItem } from './components/menu-list-item/nav-item';
@Component({
selector: 'app-root',
@@ -19,6 +20,35 @@ export class AppComponent {
@ViewChild('sidenav') public sideNav:MatSidenav;
@ViewChild('appDrawer') appDrawer: ElementRef;
+
+ navItems: NavItem[] = [
+ {
+ displayName: 'Tabellenübersicht ',
+ iconName: 'recent_actors',
+ route: 'tableOverview'
+ },
+ {
+ displayName: 'Tabellen',
+ iconName: 'recent_actors',
+ children: [
+ {
+ displayName: 'Lastenräder',
+ iconName: 'group',
+ route: 'table/bikes'
+ },
+ {
+ displayName: 'Beteiligte',
+ iconName: 'group',
+ route: 'table/participants'
+ },
+ {
+ displayName: 'Ausleihstationen',
+ iconName: 'group',
+ route: 'table/lendingStations'
+ }]
+ }];
+
+
constructor(
private renderer: Renderer2,
private themeService: ColorThemeService,
diff --git a/src/app/components/menu-list-item/menu-list-item.component.scss b/src/app/components/menu-list-item/menu-list-item.component.scss
index df8dd0f..149e979 100644
--- a/src/app/components/menu-list-item/menu-list-item.component.scss
+++ b/src/app/components/menu-list-item/menu-list-item.component.scss
@@ -1,4 +1,4 @@
-/*@import '../theme';
+@import '../../../theme';
:host {
display: flex;
@@ -7,12 +7,12 @@
width: 100%;
.mat-list-item.active {
- background-color: mat-color($app-primary, 50);
+ //background-color: mat-color($dark-primary, 50);
}
&:hover,
&:focus {
>.mat-list-item:not(.expanded) {
- background-color: mat-color($app-primary, 100) !important;
+ //background-color: mat-color($dark-primary, 100) !important;
}
}
}
@@ -25,4 +25,4 @@
.routeIcon {
margin-right: 40px;
}
-}*/
+}