accept deny button
This commit is contained in:
parent
c194b9ff1d
commit
1b879d1403
|
@ -14,7 +14,6 @@ import 'rxjs/add/operator/switchMap';
|
|||
import 'rxjs/add/operator/map';
|
||||
import 'rxjs/add/operator/take';
|
||||
|
||||
import { RPCError } from 'packages/core/rpc/error';
|
||||
import {
|
||||
DiscoverZone,
|
||||
DiscoverHost,
|
||||
|
@ -41,4 +40,27 @@ export class Effects {
|
|||
this.discoveryService.discoverZone(payload.probeID, payload.discoveryZone);
|
||||
});
|
||||
|
||||
@Effect({ dispatch: false })
|
||||
discoveryHost$ = this.actions$
|
||||
.ofType(ActionType.DiscoverHost)
|
||||
.map((action: DiscoverHost) => action.payload)
|
||||
.do(payload => {
|
||||
this.discoveryService.discoverHost(payload.probeID, payload.zone, payload.discoveryHost);
|
||||
});
|
||||
|
||||
@Effect({ dispatch: false })
|
||||
discoveryPort$ = this.actions$
|
||||
.ofType(ActionType.DiscoverPort)
|
||||
.map((action: DiscoverPort) => action.payload)
|
||||
.do(payload => {
|
||||
this.discoveryService.discoverPort(payload.probeID, payload.host, payload.discoveryPort);
|
||||
});
|
||||
|
||||
@Effect({ dispatch: false })
|
||||
discoveryService$ = this.actions$
|
||||
.ofType(ActionType.DiscoverService)
|
||||
.map((action: DiscoverService) => action.payload)
|
||||
.do(payload => {
|
||||
this.discoveryService.discoverService(payload.probeID, payload.port, payload.discoveryService);
|
||||
});
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user