result msg
This commit is contained in:
parent
1349ec2d09
commit
47c618c936
|
@ -63,18 +63,21 @@
|
||||||
</g>
|
</g>
|
||||||
</g>
|
</g>
|
||||||
</svg>
|
</svg>
|
||||||
<p-card class="ui-map-info">
|
|
||||||
Content
|
|
||||||
</p-card>
|
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
<p-card class="ui-map-info" *ngIf="resultMsg">
|
||||||
|
<b>Total Hosts: </b> {{resultMsg[0]}}<br />
|
||||||
|
<b>Total Services:</b> {{resultMsg[1]}}<br />
|
||||||
|
<b>Time Spent: </b>{{resultMsg[2]}}
|
||||||
|
</p-card>
|
||||||
|
|
||||||
|
|
||||||
<p-sidebar [(visible)]="displaySidebar" styleClass="ui-sidebar-md" position="right" (onHide)="onHideDetail()">
|
<p-sidebar [(visible)]="displaySidebar" styleClass="ui-sidebar-md" position="right" (onHide)="onHideDetail()">
|
||||||
<div *ngIf="selectedNode !== null">
|
<div *ngIf="selectedNode !== null">
|
||||||
<app-node-detail [node]="selectedNode" (otherHostSelect)="otherHostSelected($event)"></app-node-detail>
|
<app-node-detail [node]="selectedNode" (otherHostSelect)="otherHostSelected($event)"></app-node-detail>
|
||||||
</div>
|
</div>
|
||||||
</p-sidebar>
|
</p-sidebar>
|
||||||
|
|
||||||
<p-growl [(value)]="resultMsg" [sticky]="true"></p-growl>
|
|
||||||
|
|
||||||
<!-- <div class="ui-fluid">
|
<!-- <div class="ui-fluid">
|
||||||
<div class="ui-g">
|
<div class="ui-g">
|
||||||
|
|
|
@ -96,9 +96,8 @@
|
||||||
|
|
||||||
.ui-map-info {
|
.ui-map-info {
|
||||||
position: absolute;
|
position: absolute;
|
||||||
top: 0;
|
top: 10px;
|
||||||
left :10px;
|
left :10px;
|
||||||
margin-top: 80px;
|
|
||||||
.ui-card-body {
|
.ui-card-body {
|
||||||
padding: 0.5em !important;
|
padding: 0.5em !important;
|
||||||
}
|
}
|
||||||
|
|
|
@ -53,7 +53,7 @@ export class HomePageComponent implements OnInit, OnDestroy {
|
||||||
hosts: Map<string, Host>;
|
hosts: Map<string, Host>;
|
||||||
ports: Map<string, Map<number, Port>>;
|
ports: Map<string, Map<number, Port>>;
|
||||||
|
|
||||||
resultMsg: Message[] = [];
|
resultMsg: string[];
|
||||||
|
|
||||||
@HostListener('window:resize', ['$event'])
|
@HostListener('window:resize', ['$event'])
|
||||||
onResize(event) {
|
onResize(event) {
|
||||||
|
@ -158,8 +158,8 @@ export class HomePageComponent implements OnInit, OnDestroy {
|
||||||
console.log(this.zone);
|
console.log(this.zone);
|
||||||
console.log(this.discoverHost);
|
console.log(this.discoverHost);
|
||||||
console.log('########################################################');
|
console.log('########################################################');
|
||||||
this.resultMsg = [];
|
|
||||||
|
|
||||||
|
this.resultMsg = null;
|
||||||
this.showIntro = false;
|
this.showIntro = false;
|
||||||
this.changeDetector.detectChanges();
|
this.changeDetector.detectChanges();
|
||||||
|
|
||||||
|
@ -633,10 +633,11 @@ export class HomePageComponent implements OnInit, OnDestroy {
|
||||||
this.simulationRestart(true);
|
this.simulationRestart(true);
|
||||||
this.zoomToFit(0.95, 500);
|
this.zoomToFit(0.95, 500);
|
||||||
|
|
||||||
const countSum = 'Host: ' + hostCount + ' / ' + 'Service: ' + serviceCount;
|
this.resultMsg = [];
|
||||||
const timeSpentSum = hours + ':' + minutes + ':' + seconds;
|
this.resultMsg.push(hostCount + '');
|
||||||
|
this.resultMsg.push(serviceCount + '');
|
||||||
|
this.resultMsg.push(hours + ':' + minutes + ':' + seconds);
|
||||||
|
|
||||||
this.resultMsg.push({ severity: 'success', summary: countSum, detail: timeSpentSum });
|
|
||||||
// this.simulation.stop();
|
// this.simulation.stop();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user