]>
Commit | Line | Data |
---|---|---|
1 | import { Component, Input, ViewChild } from '@angular/core'; | |
2 | ||
3 | import { TabsetComponent } from 'ngx-bootstrap/tabs'; | |
4 | ||
5 | import { Permissions } from '../../../../shared/models/permissions'; | |
6 | ||
7 | @Component({ | |
8 | selector: 'cd-host-details', | |
9 | templateUrl: './host-details.component.html', | |
10 | styleUrls: ['./host-details.component.scss'] | |
11 | }) | |
12 | export class HostDetailsComponent { | |
13 | @Input() | |
14 | permissions: Permissions; | |
15 | ||
16 | @Input() | |
17 | selection: any; | |
18 | ||
19 | @ViewChild(TabsetComponent, { static: false }) | |
20 | tabsetChild: TabsetComponent; | |
21 | ||
22 | get selectedHostname(): string { | |
23 | return this.selection !== undefined ? this.selection['hostname'] : null; | |
24 | } | |
25 | ||
26 | constructor() {} | |
27 | } |