From 92ee13d15b5d08242a7672c07abb565c36d38499 Mon Sep 17 00:00:00 2001 From: crusader Date: Thu, 18 Oct 2018 10:47:14 +0900 Subject: [PATCH] ing --- src/app/core/discovery/discovery-session.ts | 32 ++++++++++++++++++--- src/app/pages/home/home-page.component.html | 7 +++-- 2 files changed, 33 insertions(+), 6 deletions(-) diff --git a/src/app/core/discovery/discovery-session.ts b/src/app/core/discovery/discovery-session.ts index f88fb76..ca81ed0 100644 --- a/src/app/core/discovery/discovery-session.ts +++ b/src/app/core/discovery/discovery-session.ts @@ -1,6 +1,6 @@ import { Store, select } from '@ngrx/store'; -import { Host, Port, DiscoveryModeType, Service } from '@overflow/model/discovery'; +import { Host, Port, DiscoveryModeType, Service, Zone } from '@overflow/model/discovery'; import { RPCSubscriber } from '@overflow/commons/ui/decorator/RPCSubscriber'; import { RPCError } from '@overflow/rpc-js'; @@ -44,11 +44,35 @@ export class DiscoverySession { if (null !== discoverySession) { return null; } + + let _zone: Zone = null; + let _host: Host = null; + let _port: Port = null; + + if (null !== zone) { + _zone = { + ...zone, + hostList: null, + }; + } + if (null !== host) { + _host = { + ...host, + portList: null, + }; + } + if (null !== port) { + _port = { + ...port, + serviceList: null, + }; + } + const discoverRequestInfo = { requesterID: memberID, - zone, - host, - port, + zone: _zone, + host: _host, + port: _port, discoverHost, discoverPort, discoverService, diff --git a/src/app/pages/home/home-page.component.html b/src/app/pages/home/home-page.component.html index 6ebc9ae..def5a0d 100644 --- a/src/app/pages/home/home-page.component.html +++ b/src/app/pages/home/home-page.component.html @@ -3,7 +3,10 @@
+ c4.5-7.7,1.8-17.6-5.9-22.1L31.6,3.4c-2.2-1.1-4.6-1.7-7.2-1.7c-8.9,0-16.2,7.2-16.2,16.2V193.5z"> + + +
@@ -20,4 +23,4 @@
- \ No newline at end of file +