diff --git a/@overflow/model/discovery/discovery.ts b/@overflow/model/discovery/discovery.ts new file mode 100644 index 0000000..879cffa --- /dev/null +++ b/@overflow/model/discovery/discovery.ts @@ -0,0 +1,4 @@ +export enum DiscoveryModeType { + Privileged = 'Privileged', + Unprivileged = 'Unprivileged', +} diff --git a/src/app/pages/home/home-page.component.ts b/src/app/pages/home/home-page.component.ts index fce4bdf..a4fc8f2 100644 --- a/src/app/pages/home/home-page.component.ts +++ b/src/app/pages/home/home-page.component.ts @@ -16,6 +16,7 @@ import { Link } from '../../../commons/model/link'; import { RPCError } from '@overflow/rpc-js'; import { toMetaIPType, MetaIPTypeEnum, toMetaCryptoType, MetaCryptoTypeEnum } from '@overflow/model/meta'; import { Message } from 'primeng/primeng'; +import { DiscoveryModeType } from '@overflow/model/discovery/discovery'; @Component({ selector: 'app-pages-home', @@ -617,7 +618,7 @@ export class HomePageComponent implements OnInit, OnDestroy { * DiscoveryMode */ @RPCSubscriber({ method: 'DiscoveryService.DiscoveryMode' }) - public DiscoveryMode(mode: string) { + public DiscoveryMode(mode: DiscoveryModeType) { this.discoveryConfigService.setDiscoveryMode(mode); }