This commit is contained in:
crusader 2018-09-17 15:40:11 +09:00
parent c1ac809a49
commit ecfc6320ff
2 changed files with 6 additions and 1 deletions

View File

@ -0,0 +1,4 @@
export enum DiscoveryModeType {
Privileged = 'Privileged',
Unprivileged = 'Unprivileged',
}

View File

@ -16,6 +16,7 @@ import { Link } from '../../../commons/model/link';
import { RPCError } from '@overflow/rpc-js'; import { RPCError } from '@overflow/rpc-js';
import { toMetaIPType, MetaIPTypeEnum, toMetaCryptoType, MetaCryptoTypeEnum } from '@overflow/model/meta'; import { toMetaIPType, MetaIPTypeEnum, toMetaCryptoType, MetaCryptoTypeEnum } from '@overflow/model/meta';
import { Message } from 'primeng/primeng'; import { Message } from 'primeng/primeng';
import { DiscoveryModeType } from '@overflow/model/discovery/discovery';
@Component({ @Component({
selector: 'app-pages-home', selector: 'app-pages-home',
@ -617,7 +618,7 @@ export class HomePageComponent implements OnInit, OnDestroy {
* DiscoveryMode * DiscoveryMode
*/ */
@RPCSubscriber({ method: 'DiscoveryService.DiscoveryMode' }) @RPCSubscriber({ method: 'DiscoveryService.DiscoveryMode' })
public DiscoveryMode(mode: string) { public DiscoveryMode(mode: DiscoveryModeType) {
this.discoveryConfigService.setDiscoveryMode(mode); this.discoveryConfigService.setDiscoveryMode(mode);
} }