From 60011b80da470f37bd1512b3fbd05b8243ed42b6 Mon Sep 17 00:00:00 2001 From: cyuamber Date: Wed, 4 Dec 2019 12:15:41 +0800 Subject: style: change the style of homepage layout Change-Id: I79fba465a810a263877d796fa83544856c90f9b1 Issue-ID: USECASEUI-352 Signed-off-by: cyuamber --- .../src/app/views/home/home.component.ts | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) (limited to 'usecaseui-portal/src/app/views/home/home.component.ts') diff --git a/usecaseui-portal/src/app/views/home/home.component.ts b/usecaseui-portal/src/app/views/home/home.component.ts index a7f312e6..75ebb183 100644 --- a/usecaseui-portal/src/app/views/home/home.component.ts +++ b/usecaseui-portal/src/app/views/home/home.component.ts @@ -13,7 +13,7 @@ See the License for the specific language governing permissions and limitations under the License. */ -import { Component, OnInit, HostBinding, ViewChild, ElementRef } from '@angular/core'; +import { Component, OnInit, HostBinding, ViewChild, ElementRef } from '@angular/core'; import { HomesService } from '../../core/services/homes.service'; import { slideToRight } from '../../shared/utils/animates'; import { Util } from '../../shared/utils/utils'; @@ -31,13 +31,13 @@ export class HomeComponent implements OnInit { @HostBinding('@routerAnimate') routerAnimateState; @ViewChild('seriverChart') seriverChart; @ViewChild('services') services: ElementRef; - resizeMark + resizeMark constructor( private myhttp: HomesService, private router: Router, private Util: Util - ) { + ) { } ngOnInit() { @@ -49,17 +49,17 @@ export class HomeComponent implements OnInit { this.getHomeServiceBarNsData(); this.getHomeServiceBarVnfData(); this.getHomeServiceBarPnfData(); - this.resizeMark = Observable.fromEvent(window,'resize') + this.resizeMark = Observable.fromEvent(window, 'resize') .subscribe((event) => { - this.seriverChart.resize(this.services.nativeElement.offsetHeight,250) + this.seriverChart.resize(this.services.nativeElement.offsetHeight, 250) }) } - - ngAfterViewInit(){ - this.seriverChart.resize(this.services.nativeElement.offsetHeight,250) + + ngAfterViewInit() { + this.seriverChart.resize(this.services.nativeElement.offsetHeight, 250) } - ngOnDestroy(){ + ngOnDestroy() { this.resizeMark.unsubscribe() } @@ -540,7 +540,7 @@ export class HomeComponent implements OnInit { this.router.navigateByUrl('/services/services-list'); } goback_onboard() { - this.router.navigateByUrl('/services/onboard-vnf-vm'); + this.router.navigateByUrl('/onboard-vnf-vm'); } } -- cgit 1.2.3-korg