ing
This commit is contained in:
parent
c1ac809a49
commit
ecfc6320ff
4
@overflow/model/discovery/discovery.ts
Normal file
4
@overflow/model/discovery/discovery.ts
Normal file
|
@ -0,0 +1,4 @@
|
||||||
|
export enum DiscoveryModeType {
|
||||||
|
Privileged = 'Privileged',
|
||||||
|
Unprivileged = 'Unprivileged',
|
||||||
|
}
|
|
@ -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);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user