X-Git-Url: https://gerrit.akraino.org/r/gitweb?a=blobdiff_plain;f=blueprints%2Fcommon%2Feliot-ui%2Ffrontend-src%2Fsrc%2Fapp%2Fhome%2Fhome.component.ts;h=299fcc4bfebae755e3aa3d77e009b989c15cb1ad;hb=refs%2Fchanges%2F73%2F2173%2F5;hp=f56c8c173bb540750b9e716d52b0382c6a5f6aa7;hpb=a45c96e6ef35810d4803bad8d00e76258710eb5b;p=eliot.git diff --git a/blueprints/common/eliot-ui/frontend-src/src/app/home/home.component.ts b/blueprints/common/eliot-ui/frontend-src/src/app/home/home.component.ts index f56c8c1..299fcc4 100644 --- a/blueprints/common/eliot-ui/frontend-src/src/app/home/home.component.ts +++ b/blueprints/common/eliot-ui/frontend-src/src/app/home/home.component.ts @@ -1,4 +1,5 @@ import { Component, OnInit } from '@angular/core'; +import { ToolbarService } from './../toolbar/toolbar.service'; @Component({ selector: 'app-home', @@ -6,10 +7,17 @@ import { Component, OnInit } from '@angular/core'; styleUrls: ['./home.component.scss'] }) export class HomeComponent implements OnInit { - - constructor() { } + // images = [944, 1011, 984].map((n) => `https://picsum.photos/id/${n}/900/500`); + images = ["./../../assets/images/iotlatest1.png","./../../assets/images/login2.jpg","./../../assets/images/iotlatest6.jpg"]; + public currentUser; + + constructor(public toolbarService: ToolbarService) { + this.currentUser = localStorage.getItem('currentUser')? JSON.parse(localStorage.getItem('currentUser')) : ''; + } ngOnInit() { + // this.toolbarService.show(); + this.toolbarService.show(); } }