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