diff options
author | seshukm <seshu.kumar.m@huawei.com> | 2020-02-26 16:43:45 +0800 |
---|---|---|
committer | xu ran <xuranyjy@chinamobile.com> | 2020-02-26 09:00:01 +0000 |
commit | 507c757f0cef57afcf641a8481cc788983fcc2a9 (patch) | |
tree | 410f1c26ecb1cd761725a62f2dc957062bb85f25 /usecaseui-portal/src | |
parent | a6b444ddefcb8c6106dd371b7c9a9ee986d102ae (diff) |
remove the hardcoding of the name, replace wit the indexing
Issue-ID: USECASEUI-387
Signed-off-by: seshukm <seshu.kumar.m@huawei.com>
Change-Id: I00c16ef7782941fdfd41738b6aeb22d9e82a6bf3
Diffstat (limited to 'usecaseui-portal/src')
-rw-r--r-- | usecaseui-portal/src/app/views/services/sotn-management/sotn-management.component.ts | 10 |
1 files changed, 6 insertions, 4 deletions
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; } } |