]> git.proxmox.com Git - ceph.git/blame - ceph/src/pybind/mgr/dashboard/frontend/src/app/ceph/cluster/hosts/host-details/host-details.component.ts
import 15.2.4
[ceph.git] / ceph / src / pybind / mgr / dashboard / frontend / src / app / ceph / cluster / hosts / host-details / host-details.component.ts
CommitLineData
9f95a23c
TL
1import { Component, Input, ViewChild } from '@angular/core';
2
3import { TabsetComponent } from 'ngx-bootstrap/tabs';
11fdf7f2 4
9f95a23c 5import { 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
12export 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}