probe-list/detail modified

This commit is contained in:
insanity
2018-06-15 12:56:54 +09:00
parent 1aced160a2
commit d3d4ab68a5
7 changed files with 63 additions and 20 deletions

View File

@@ -0,0 +1,7 @@
<p-overlayPanel #op *ngIf="infraHostIPs && infraHostIPs.length > 1">
<div *ngFor="let ip of infraHostIPs">
{{ip.address}}
</div>
</p-overlayPanel>
<a style="cursor: pointer; text-decoration: underline" (click)="op.toggle($event)">{{infraHostIPs[0].address}}</a>

View File

@@ -0,0 +1,15 @@
import { Component, Input } from '@angular/core';
import { InfraHostIP } from '@overflow/commons-typescript';
@Component({
selector: 'of-host-ips-overlay',
templateUrl: './host-ips-overlay.component.html'
})
export class HostIPsOverlayComponent {
@Input() infraHostIPs: InfraHostIP[];
constructor(
) { }
}

View File

@@ -2,10 +2,12 @@ import { BlockProgressbarComponent } from './block-progressbar.component';
import { KeyValueComponent } from './key-value.component';
import { ErrorMessageComponent } from './error-message.component';
import { MessageComponent } from './message.component';
import { HostIPsOverlayComponent } from './host-ips-overlay.component';
export const COMPONENTS = [
BlockProgressbarComponent,
KeyValueComponent,
MessageComponent,
ErrorMessageComponent,
HostIPsOverlayComponent
];