diff options
author | Dan Finlay <542863+danfinlay@users.noreply.github.com> | 2018-09-12 03:52:12 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-09-12 03:52:12 +0800 |
commit | 1d95dc72b15bba7b81a2f8f0693a58113dc19e2e (patch) | |
tree | ee2205f50b8d9f7a771e3b31af81019c0d75f869 /app/scripts/controllers/preferences.js | |
parent | 1552fe1c3eb8571036f8e32a3b2c5895849d19f1 (diff) | |
parent | 13bc46d8243b434268db04b58500720b4884a969 (diff) | |
download | tangerine-wallet-browser-1d95dc72b15bba7b81a2f8f0693a58113dc19e2e.tar tangerine-wallet-browser-1d95dc72b15bba7b81a2f8f0693a58113dc19e2e.tar.gz tangerine-wallet-browser-1d95dc72b15bba7b81a2f8f0693a58113dc19e2e.tar.bz2 tangerine-wallet-browser-1d95dc72b15bba7b81a2f8f0693a58113dc19e2e.tar.lz tangerine-wallet-browser-1d95dc72b15bba7b81a2f8f0693a58113dc19e2e.tar.xz tangerine-wallet-browser-1d95dc72b15bba7b81a2f8f0693a58113dc19e2e.tar.zst tangerine-wallet-browser-1d95dc72b15bba7b81a2f8f0693a58113dc19e2e.zip |
Merge pull request #5236 from whymarrh/excise-config-manager
Delete ConfigManager class and replace its valid usages
Diffstat (limited to 'app/scripts/controllers/preferences.js')
-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 |