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=5c2048d4d3e672783eea4f306aa9a03f33a1a9f2;hp=f56c8c173bb540750b9e716d52b0382c6a5f6aa7;hpb=59f512662c02a16c1d5c45b090b185d2e773310f;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(); } }