summaryrefslogtreecommitdiffstats
path: root/usecaseui-portal/src/app/views/services/slicing-management/slicing-resource-management/slicing-resource-management.component.ts
blob: a2a0aaf7341830bd83d59be0288d9d534a568cc8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
import {Component, Input, OnInit, SimpleChanges} from '@angular/core';

@Component({
    selector: 'app-slicing-resource-management',
    templateUrl: './slicing-resource-management.component.html',
    styleUrls: ['./slicing-resource-management.component.less']
})
export class SlicingResourceManagementComponent implements OnInit {

    constructor() {}

    @Input() currentTabTitle;

    ngOnChanges(changes: SimpleChanges) {
        if (changes.currentTabTitle.currentValue === 'Slicing Resource Management') {
            this.currentTab = 'Slicing Business Management'
        }else {
            this.currentTab = ''
        }
    }

    ngOnInit() {}

    currentTab = '';

    handleTabChange($event): void {
        this.currentTab = $event.tab._title;
    }
}