diff --git a/@overflow/discovery/component/discovery.component.ts b/@overflow/discovery/component/discovery.component.ts index 13d9dc4..db30700 100644 --- a/@overflow/discovery/component/discovery.component.ts +++ b/@overflow/discovery/component/discovery.component.ts @@ -15,7 +15,7 @@ import { DiscoverySubscriber, DiscoveryNotify } from '../subscriber/discovery.su templateUrl: './discovery.component.html', animations: Anim }) -export class DiscoveryComponent { +export class DiscoveryComponent { @Input() probeHostID; pending$: Observable; @@ -24,6 +24,7 @@ export class DiscoveryComponent { selectedProbe: ProbeHost; requested: boolean; + discoverZone: DiscoverZone; constructor( @@ -35,9 +36,7 @@ export class DiscoveryComponent { onRequestDiscovery(dz: DiscoverZone) { this.requested = true; - - this.requested = true; - + this.discoverZone = dz; this.discoverySubscriber.observable().pipe( tap(() => { this.discoveryService.discoverZone(this.selectedProbe.probe.probeKey, dz); @@ -80,13 +79,13 @@ export class DiscoveryComponent { } }), catchError(error => { - return of(); }), ).subscribe(); } onRequestDiscoveryStop() { + this.discoverZone = null; this.requested = false; } } diff --git a/@overflow/discovery/component/request-summary.component.html b/@overflow/discovery/component/request-summary.component.html index f79671f..6ece8a4 100644 --- a/@overflow/discovery/component/request-summary.component.html +++ b/@overflow/discovery/component/request-summary.component.html @@ -1,9 +1,16 @@
- - - TCP - UDP -
- {{service}} -
-
+ + + TCP + UDP + +
+ +
+ {{service}} +
+
+ + +
+ \ No newline at end of file