This commit is contained in:
sunny
2018-09-12 13:18:22 +09:00
5 changed files with 28 additions and 7 deletions

View File

@@ -30,16 +30,14 @@
<span class="meta-value">{{host.mac}}</span>
</li>
<li *ngIf="host.discoveredBy">
Discovered by
<span class="meta-value">{{host.discoveredBy.join(',')}}</span>
</li>
</ul>
</p-tabPanel>
<p-tabPanel header="Metadata" *ngIf="host.meta && host.meta.length > 0">
<p-tabPanel header="Metadata" *ngIf="host.meta">
<div *ngFor="let key of host.meta | objectKeys">
{{key | stringPrettify}}: {{host.meta[key]}}
</div>
</p-tabPanel>
<p-tabPanel header="Ports" *ngIf="host.portList">

View File

@@ -12,11 +12,11 @@ export class HostDetailComponent {
@Input() host: Host;
ports: Port[];
selectedPort: Port;
discoveredBy: string;
constructor(
) {
}
}