This commit is contained in:
insanity 2018-06-07 15:10:17 +09:00
parent facedbb13c
commit b9b5195529
4 changed files with 8 additions and 5 deletions

View File

@ -3,7 +3,8 @@
<div class="ui-g-12 ui-g-nopad">
<div class="ui-g">
<div class="ui-g-12 ui-md-5 ui-g-nopad ui-bottom-space-10">
<button pButton type="button" class="ui-button-large ui-button-width-fit" icon="ui-icon-play-arrow" label="Discovery" (click)="onDiscovery()"></button>
<button pButton type="button" class="ui-button-large ui-button-width-fit"
icon="ui-icon-play-arrow" label="Discovery" (click)="discovery.emit()"></button>
</div>
<div class="ui-g-12 ui-md-7 ui-g-nopad">
<div style="float: right;">

View File

@ -32,6 +32,8 @@ export class InfraMapComponent implements OnInit {
probeHosts: ProbeHost[];
probeTabIdx: number;
@Output() discovery = new EventEmitter();
constructor(
private store: Store<any>,
private probeHostService: ProbeHostService,
@ -110,7 +112,4 @@ export class InfraMapComponent implements OnInit {
).subscribe();
}
onDiscovery() {
}
}

View File

@ -2,7 +2,7 @@
<div class="ui-g">
<div class="ui-g-12">
<div class="card no-margin">
<of-infra-map></of-infra-map>
<of-infra-map (discovery)="onDiscovery($event)"></of-infra-map>
</div>
</div>
</div>

View File

@ -15,4 +15,7 @@ export class InfraPageComponent implements OnInit {
ngOnInit() {
}
onDiscovery() {
this.router.navigate(['discovery']);
}
}