ing
This commit is contained in:
parent
f7a09c209e
commit
c58c5d98b1
|
@ -1 +1 @@
|
||||||
|
<of-discovery></of-discovery>
|
||||||
|
|
|
@ -1,9 +1,8 @@
|
||||||
import {
|
import {
|
||||||
AfterContentInit, Component,
|
AfterContentInit, Component, Input,
|
||||||
OnInit
|
OnInit
|
||||||
} from '@angular/core';
|
} from '@angular/core';
|
||||||
import { select, StateObservable } from '@ngrx/store';
|
import { select, StateObservable } from '@ngrx/store';
|
||||||
import { ListSelector } from '../../../probe/store';
|
|
||||||
import { ActivatedRoute } from '@angular/router';
|
import { ActivatedRoute } from '@angular/router';
|
||||||
|
|
||||||
@Component({
|
@Component({
|
||||||
|
@ -17,13 +16,14 @@ export class DiscoveryContainerComponent implements OnInit, AfterContentInit {
|
||||||
// discovery start
|
// discovery start
|
||||||
// discovery stop
|
// discovery stop
|
||||||
// get service list
|
// get service list
|
||||||
probes$: StateObservable;
|
@Input() hostID;
|
||||||
|
|
||||||
constructor(
|
constructor(
|
||||||
private activatedRoute: ActivatedRoute,
|
private activatedRoute: ActivatedRoute,
|
||||||
) {
|
) {
|
||||||
// this.returnURL = this.activatedRoute.snapshot.queryParams['probe'] || null;
|
if (this.hostID > 0 && this.hostID !== undefined ) {
|
||||||
// this.probes$ = listStore.pipe(select(ListSelector.select('probes')));
|
console.log('ddddddddddddddddddddddddddddddddddddddd');
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
ngOnInit() {
|
ngOnInit() {
|
||||||
|
|
|
@ -10,6 +10,7 @@ import { COMPONENTS } from './component';
|
||||||
import { SERVICES } from './service';
|
import { SERVICES } from './service';
|
||||||
import { PrimeNGModules } from '@overflow/commons/prime-ng/prime-ng.module';
|
import { PrimeNGModules } from '@overflow/commons/prime-ng/prime-ng.module';
|
||||||
import { KeyValueModule } from '@overflow/commons/component/key-value/key-value.module';
|
import { KeyValueModule } from '@overflow/commons/component/key-value/key-value.module';
|
||||||
|
import { CONTAINER_COMPONENTS } from './container';
|
||||||
|
|
||||||
@NgModule({
|
@NgModule({
|
||||||
imports: [
|
imports: [
|
||||||
|
@ -23,10 +24,12 @@ import { KeyValueModule } from '@overflow/commons/component/key-value/key-value.
|
||||||
KeyValueModule
|
KeyValueModule
|
||||||
],
|
],
|
||||||
declarations: [
|
declarations: [
|
||||||
COMPONENTS
|
COMPONENTS,
|
||||||
|
CONTAINER_COMPONENTS
|
||||||
],
|
],
|
||||||
exports: [
|
exports: [
|
||||||
COMPONENTS,
|
COMPONENTS,
|
||||||
|
CONTAINER_COMPONENTS
|
||||||
],
|
],
|
||||||
providers: [
|
providers: [
|
||||||
SERVICES,
|
SERVICES,
|
||||||
|
|
|
@ -2,7 +2,8 @@
|
||||||
<div class="ui-g">
|
<div class="ui-g">
|
||||||
<div class="ui-g-12">
|
<div class="ui-g-12">
|
||||||
<div class="card no-margin">
|
<div class="card no-margin">
|
||||||
<of-discovery></of-discovery>
|
<!--<of-discovery></of-discovery>-->
|
||||||
|
<of-discovery-container (hostID)="hostId"></of-discovery-container>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
|
@ -7,14 +7,16 @@ import { ActivatedRoute } from '@angular/router';
|
||||||
})
|
})
|
||||||
export class DiscoveryPageComponent implements OnInit {
|
export class DiscoveryPageComponent implements OnInit {
|
||||||
|
|
||||||
|
hostId: number;
|
||||||
|
|
||||||
constructor(
|
constructor(
|
||||||
private route: ActivatedRoute
|
private route: ActivatedRoute
|
||||||
) { }
|
) { }
|
||||||
|
|
||||||
ngOnInit() {
|
ngOnInit() {
|
||||||
this.route.params.subscribe((params: any) => {
|
this.route.params.subscribe((params: any) => {
|
||||||
const probeHostID = params['probeHostID'];
|
this.hostId = params['probeHostID'];
|
||||||
console.log('probeHostID : ' + probeHostID);
|
// console.log('probeHostID : ' + probeHostID);
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user