From 507c757f0cef57afcf641a8481cc788983fcc2a9 Mon Sep 17 00:00:00 2001 From: seshukm Date: Wed, 26 Feb 2020 16:43:45 +0800 Subject: remove the hardcoding of the name, replace wit the indexing Issue-ID: USECASEUI-387 Signed-off-by: seshukm Change-Id: I00c16ef7782941fdfd41738b6aeb22d9e82a6bf3 --- .../services/sotn-management/sotn-management.component.ts | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) (limited to 'usecaseui-portal') diff --git a/usecaseui-portal/src/app/views/services/sotn-management/sotn-management.component.ts b/usecaseui-portal/src/app/views/services/sotn-management/sotn-management.component.ts index 84886f31..9038f05a 100644 --- a/usecaseui-portal/src/app/views/services/sotn-management/sotn-management.component.ts +++ b/usecaseui-portal/src/app/views/services/sotn-management/sotn-management.component.ts @@ -10,8 +10,7 @@ import { slideToRight } from '../../../shared/utils/animates'; export class SotnManagementComponent implements OnInit { @HostBinding('@routerAnimate') routerAnimateState; - - currentTab = 'Order Service'; + selectedIndex:number = 0; constructor() { } @@ -19,7 +18,10 @@ export class SotnManagementComponent implements OnInit { } handleTabChange($event): void { - console.log($event,"$event"); - this.currentTab = $event.tab._title; + this.selectedIndex = $event.index; + } + + changeTab() { + this.selectedIndex = 1; } } -- cgit 1.2.3-korg