blob: bc66bdaab009cdec6c544235ce29e946588aae23 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
|
import { Component, Input } from '@angular/core';
import { Permissions } from '~/app/shared/models/permissions';
@Component({
selector: 'cd-host-details',
templateUrl: './host-details.component.html',
styleUrls: ['./host-details.component.scss']
})
export class HostDetailsComponent {
@Input()
permissions: Permissions;
@Input()
selection: any;
get selectedHostname(): string {
return this.selection !== undefined ? this.selection['hostname'] : null;
}
}
|