1 import { Component, Input, ViewChild } from '@angular/core';
3 import { TabsetComponent } from 'ngx-bootstrap/tabs';
5 import { CdTableSelection } from '../../../../shared/models/cd-table-selection';
6 import { Permissions } from '../../../../shared/models/permissions';
9 selector: 'cd-host-details',
10 templateUrl: './host-details.component.html',
11 styleUrls: ['./host-details.component.scss']
13 export class HostDetailsComponent {
15 permissions: Permissions;
18 selection: CdTableSelection;
20 @ViewChild(TabsetComponent, { static: false })
21 tabsetChild: TabsetComponent;
23 get selectedHostname(): string {
24 return this.selection.hasSelection ? this.selection.first()['hostname'] : null;