|
|
|
@ -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,
|
|
|
|
|