This commit is contained in:
insanity 2018-05-03 20:55:14 +09:00
parent 6edacfc40a
commit 377547f7ac
3 changed files with 6 additions and 6 deletions

View File

@ -1,8 +1,4 @@
<div *ngIf="!preProbe; else probeInfo"> <div *ngIf="!preProbe">
<p-dropdown [options]="probes" optionLabel="displayName" placeholder="Select a Probe" (onChange)="onProbeSelect($event)" <p-dropdown [options]="probes" optionLabel="displayName" placeholder="Select a Probe" (onChange)="onProbeSelect($event)"
[style]="{'width':'300px'}"></p-dropdown> [style]="{'width':'300px'}"></p-dropdown>
</div> </div>
<ng-template #probeInfo>
<div>{{preProbe.displayName}} ({{preProbe.cidr}})</div>
</ng-template>

View File

@ -3,7 +3,7 @@
<of-probe-selector [preProbe]="probe" (probeSelected)="onProbeSelect($event)"></of-probe-selector> <of-probe-selector [preProbe]="probe" (probeSelected)="onProbeSelect($event)"></of-probe-selector>
<p-blockUI [target]="df" [blocked]="!selectedProbe"></p-blockUI> <p-blockUI [target]="df" [blocked]="!selectedProbe"></p-blockUI>
<p-panel #df header="Panel Header"> <p-panel #df header="{{getHeaderTitle()}}">
<of-discovery-filter [probe]="selectedProbe" [requestStart]="requestStart" (discoveryRequested)="onDiscoveryStart($event)"></of-discovery-filter> <of-discovery-filter [probe]="selectedProbe" [requestStart]="requestStart" (discoveryRequested)="onDiscoveryStart($event)"></of-discovery-filter>
</p-panel> </p-panel>

View File

@ -76,4 +76,8 @@ export class SettingComponent implements OnInit, AfterContentInit, OnDestroy, On
this.close.emit(); this.close.emit();
this.started = false; this.started = false;
} }
getHeaderTitle() {
return this.selectedProbe ? this.selectedProbe.cidr : 'Discoverying Network.';
}
} }