Nie możesz wybrać więcej, niż 25 tematów Tematy muszą się zaczynać od litery lub cyfry, mogą zawierać myślniki ('-') i mogą mieć do 35 znaków.
 
 
 
 
 

38 wiersze
1.4 KiB

  1. import { Component, OnInit } from '@angular/core';
  2. import {AppService} from '../../services/app.service';
  3. @Component({
  4. selector: 'app-aside',
  5. templateUrl: './aside.component.html',
  6. styleUrls: ['./aside.component.scss']
  7. })
  8. export class AsideComponent implements OnInit {
  9. /* Navigation items */
  10. public navItems: Array<object>;
  11. constructor(public appService: AppService) { }
  12. ngOnInit() {
  13. this.navItems = [];
  14. this.navItems.push({name: 'Kunden', route: '/customer-management', className: 'customer-management'});
  15. this.navItems.push({name: 'Betreiber', route: '/operators', className: 'operators'});
  16. this.navItems.push({name: 'Produzenten', route: '/productions', className: 'productions'});
  17. this.navItems.push({name: 'Service', route: '/service', className: 'service'});
  18. // this.navItems.push({name: 'Buchhaltung', route: '/accounting', className: 'accounting'});
  19. // this.navItems.push({name: 'Produktion', route: '/production', className: 'production'});
  20. // this.navItems.push({name: 'Service', route: '/service', className: 'service'});
  21. // this.navItems.push({name: 'Technik', route: '/technique', className: 'technique'});
  22. // this.navItems.push({name: 'Vertrieb', route: '/sales', className: 'sales'});
  23. }
  24. /**
  25. * Logout
  26. */
  27. public logout(): void {
  28. this.appService.logout();
  29. }
  30. }