diff options
author | Whymarrh Whitby <whymarrh.whitby@gmail.com> | 2018-09-11 08:01:15 +0800 |
---|---|---|
committer | Whymarrh Whitby <whymarrh.whitby@gmail.com> | 2018-09-12 00:39:16 +0800 |
commit | d60991ec88fe88be4041eb4a9392df6dfc1aa973 (patch) | |
tree | 59d7835b3df10a0d016ecf0c635fe25919ad6a94 /app/scripts/controllers | |
parent | 1552fe1c3eb8571036f8e32a3b2c5895849d19f1 (diff) | |
download | tangerine-wallet-browser-d60991ec88fe88be4041eb4a9392df6dfc1aa973.tar.gz tangerine-wallet-browser-d60991ec88fe88be4041eb4a9392df6dfc1aa973.tar.zst tangerine-wallet-browser-d60991ec88fe88be4041eb4a9392df6dfc1aa973.zip |
Delete ConfigManager, replacing its usages with PreferencesController
Diffstat (limited to 'app/scripts/controllers')
-rw-r--r-- | app/scripts/controllers/preferences.js | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/app/scripts/controllers/preferences.js b/app/scripts/controllers/preferences.js index 464a37017..928ebdf1f 100644 --- a/app/scripts/controllers/preferences.js +++ b/app/scripts/controllers/preferences.js @@ -36,6 +36,8 @@ class PreferencesController { currentLocale: opts.initLangCode, identities: {}, lostIdentities: {}, + seedWords: null, + forgottenPassword: false, }, opts.initState) this.diagnostics = opts.diagnostics @@ -47,6 +49,22 @@ class PreferencesController { // PUBLIC METHODS /** + * Sets the {@code forgottenPassword} state property + * @param {boolean} forgottenPassword whether or not the user has forgotten their password + */ + setPasswordForgotten (forgottenPassword) { + this.store.updateState({ forgottenPassword }) + } + + /** + * Sets the {@code seedWords} seed words + * @param {string|null} seedWords the seed words + */ + setSeedWords (seedWords) { + this.store.updateState({ seedWords }) + } + + /** * Setter for the `useBlockie` property * * @param {boolean} val Whether or not the user prefers blockie indicators |