aboutsummaryrefslogtreecommitdiffstats
path: root/ui/app/store
diff options
context:
space:
mode:
authorChi Kei Chan <chikeichan@gmail.com>2019-05-09 02:57:21 +0800
committerGitHub <noreply@github.com>2019-05-09 02:57:21 +0800
commit56ed189aeb4ebc8e5dff7a6886e07791ce6569bb (patch)
treead3471ba0d715e9ae00c9aff2620992ae46435af /ui/app/store
parent0497d209b2adb4ac026a54159069fd44aaace9f7 (diff)
downloadtangerine-wallet-browser-56ed189aeb4ebc8e5dff7a6886e07791ce6569bb.tar
tangerine-wallet-browser-56ed189aeb4ebc8e5dff7a6886e07791ce6569bb.tar.gz
tangerine-wallet-browser-56ed189aeb4ebc8e5dff7a6886e07791ce6569bb.tar.bz2
tangerine-wallet-browser-56ed189aeb4ebc8e5dff7a6886e07791ce6569bb.tar.lz
tangerine-wallet-browser-56ed189aeb4ebc8e5dff7a6886e07791ce6569bb.tar.xz
tangerine-wallet-browser-56ed189aeb4ebc8e5dff7a6886e07791ce6569bb.tar.zst
tangerine-wallet-browser-56ed189aeb4ebc8e5dff7a6886e07791ce6569bb.zip
Auto logout after specific time (#6558)
* Add i18n strings * Finish Auto timeout * Fix linter * Fix copies * Add unit test to Advanced Tab component * Add back actions and container * Add basic test to ensure container completeness * No zero, fix linters * restrict negative in input
Diffstat (limited to 'ui/app/store')
-rw-r--r--ui/app/store/actions.js5
1 files changed, 5 insertions, 0 deletions
diff --git a/ui/app/store/actions.js b/ui/app/store/actions.js
index e7b855119..f2a9ed08f 100644
--- a/ui/app/store/actions.js
+++ b/ui/app/store/actions.js
@@ -316,6 +316,7 @@ var actions = {
UPDATE_PREFERENCES: 'UPDATE_PREFERENCES',
setUseNativeCurrencyAsPrimaryCurrencyPreference,
setShowFiatConversionOnTestnetsPreference,
+ setAutoLogoutTimeLimit,
// Migration of users to new UI
setCompletedUiMigration,
@@ -2439,6 +2440,10 @@ function setShowFiatConversionOnTestnetsPreference (value) {
return setPreference('showFiatInTestnets', value)
}
+function setAutoLogoutTimeLimit (value) {
+ return setPreference('autoLogoutTimeLimit', value)
+}
+
function setCompletedOnboarding () {
return async dispatch => {
dispatch(actions.showLoadingIndication())