Expose availablePrefixes

This commit is contained in:
Jaco Greeff
2019-07-16 21:25:05 +02:00
parent 29b43e36f4
commit 88777fd61c
+5 -1
View File
@@ -5,7 +5,7 @@
import store from 'store'; import store from 'store';
import { isUndefined } from '@polkadot/util'; import { isUndefined } from '@polkadot/util';
import { CRYPTOS, ENDPOINT_DEFAULT, ENDPOINTS, LANGUAGE_DEFAULT, LANGUAGES, LOCKING_DEFAULT, LOCKING, UIMODE_DEFAULT, UIMODES, UITHEME_DEFAULT, UITHEMES, PREFIX_DEFAULT } from './defaults'; import { CRYPTOS, ENDPOINT_DEFAULT, ENDPOINTS, LANGUAGE_DEFAULT, LANGUAGES, LOCKING_DEFAULT, LOCKING, PREFIX_DEFAULT, PREFIXES, UIMODE_DEFAULT, UIMODES, UITHEME_DEFAULT, UITHEMES } from './defaults';
import { Options, SettingsStruct } from './types'; import { Options, SettingsStruct } from './types';
export class Settings implements SettingsStruct { export class Settings implements SettingsStruct {
@@ -72,6 +72,10 @@ export class Settings implements SettingsStruct {
return LOCKING; return LOCKING;
} }
public get availablePrefixes (): Options {
return PREFIXES;
}
public get availableUIModes (): Options { public get availableUIModes (): Options {
return UIMODES; return UIMODES;
} }