fixed log4j issue
[eliot.git] / blueprints / common / eliot-ui / frontend-src / src / app / home / home.component.ts
1 import { Component, OnInit } from '@angular/core';
2 import { ToolbarService } from './../toolbar/toolbar.service';
3
4 @Component({
5   selector: 'app-home',
6   templateUrl: './home.component.html',
7   styleUrls: ['./home.component.scss']
8 })
9 export class HomeComponent implements OnInit {
10   // images = [944, 1011, 984].map((n) => `https://picsum.photos/id/${n}/900/500`);
11   images = ["./../../assets/images/iotlatest1.png","./../../assets/images/login2.jpg","./../../assets/images/iotlatest6.jpg"];
12   public currentUser;
13   
14   constructor(public toolbarService: ToolbarService) {
15     this.currentUser = localStorage.getItem('currentUser')? JSON.parse(localStorage.getItem('currentUser')) : '';
16   }
17
18   ngOnInit() {
19     // this.toolbarService.show();
20     this.toolbarService.show();
21   }
22
23 }