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