6423f164bc61af23f39d779fa6351635594a8c20
[ealt-edge.git] / example-apps / PDD / frontend-src / src / app / toolbar / toolbar.component.ts
1 import { Component, OnInit } from '@angular/core';
2 import { ToolbarService } from './toolbar.service';
3
4 @Component({
5   selector: 'app-toolbar',
6   templateUrl: './toolbar.component.html',
7   styleUrls: ['./toolbar.component.scss']
8 })
9 export class ToolbarComponent implements OnInit {
10   toolbarmenu = [];
11   menuicon: string;
12   constructor(public toolbarService: ToolbarService) { }
13
14   ngOnInit() {
15     this.menuicon = "menu";
16     this.init();
17   }
18
19   init(){
20     this.toolbarmenu = [      
21       {
22         displayName: 'EALT-EDGE',
23         route: '/home'
24       },
25       // {
26       //   displayName: 'PCB USECASE',
27       // },
28       {
29         displayName: 'USECASES',
30         children: [
31           {
32             displayName: 'PCB Defect Detection',
33             route: '/pcb'
34           }
35         ]
36       },
37       {
38         displayName: 'Akraino EALT Edge Wiki',
39         route: '/akrainowiki'
40       },
41     ]
42   }
43
44 }