This commit is contained in:
crusader
2018-05-31 22:11:23 +09:00
parent 87f68ca3f3
commit 68e0e578c7
5 changed files with 68 additions and 40 deletions

View File

@@ -6,10 +6,9 @@ import { Anim } from './animation';
import { Store, select } from '@ngrx/store';
import { Observable, of, Subscription } from 'rxjs';
import { DiscoveryService } from '../service/discovery.service';
import { DiscoveryNotify } from '../subscriber/discovery.subscriber.subject';
import { catchError, exhaustMap, map, tap } from 'rxjs/operators';
import { DiscoverZone, Zone, Host, Port, Service } from '@overflow/commons-typescript/model/discovery';
import { DiscoverySubscriber } from '../subscriber/discovery.subscriber';
import { DiscoverySubscriber, DiscoveryNotify } from '../subscriber/discovery.subscriber';
@Component({
selector: 'of-discovery',
@@ -39,9 +38,7 @@ export class DiscoveryComponent {
this.requested = true;
const discovery$ = this.discoverySubscriber.subscribe();
discovery$.pipe(
this.discoverySubscriber.observable().pipe(
tap(() => {
this.discoveryService.discoverZone(this.selectedProbe.probe.probeKey, dz);
}),