-
{t('autoLogoutTimeLimit')}
+
{t('autoLockTimeLimit')}
- {t('autoLogoutTimeLimitDescription')}
+ {t('autoLockTimeLimitDescription')}
@@ -312,10 +312,10 @@ export default class AdvancedTab extends PureComponent {
type="number"
id="autoTimeout"
placeholder="5"
- value={this.state.autoLogoutTimeLimit}
- defaultValue={autoLogoutTimeLimit}
- onChange={e => this.handleLogoutChange(e.target.value)}
- error={logoutTimeError}
+ value={this.state.autoLockTimeLimit}
+ defaultValue={autoLockTimeLimit}
+ onChange={e => this.handleLockChange(e.target.value)}
+ error={lockTimeError}
fullWidth
margin="dense"
min={0}
@@ -323,9 +323,9 @@ export default class AdvancedTab extends PureComponent {
diff --git a/ui/app/pages/settings/advanced-tab/advanced-tab.container.js b/ui/app/pages/settings/advanced-tab/advanced-tab.container.js
index 67e26aa7fa34..742c5825aa89 100644
--- a/ui/app/pages/settings/advanced-tab/advanced-tab.container.js
+++ b/ui/app/pages/settings/advanced-tab/advanced-tab.container.js
@@ -7,7 +7,7 @@ import {
setFeatureFlag,
showModal,
setShowFiatConversionOnTestnetsPreference,
- setAutoLogoutTimeLimit,
+ setAutoLockTimeLimit,
setThreeBoxSyncingPermission,
turnThreeBoxSyncingOnAndInitialize,
setUseNonceField,
@@ -27,14 +27,14 @@ export const mapStateToProps = state => {
useNonceField,
ipfsGateway,
} = metamask
- const { showFiatInTestnets, autoLogoutTimeLimit } = preferencesSelector(state)
+ const { showFiatInTestnets, autoLockTimeLimit } = preferencesSelector(state)
return {
warning,
sendHexData,
advancedInlineGas,
showFiatInTestnets,
- autoLogoutTimeLimit,
+ autoLockTimeLimit,
threeBoxSyncingAllowed,
threeBoxDisabled,
useNonceField,
@@ -55,8 +55,8 @@ export const mapDispatchToProps = dispatch => {
setShowFiatConversionOnTestnetsPreference: value => {
return dispatch(setShowFiatConversionOnTestnetsPreference(value))
},
- setAutoLogoutTimeLimit: value => {
- return dispatch(setAutoLogoutTimeLimit(value))
+ setAutoLockTimeLimit: value => {
+ return dispatch(setAutoLockTimeLimit(value))
},
setThreeBoxSyncingPermission: newThreeBoxSyncingState => {
if (newThreeBoxSyncingState) {
diff --git a/ui/app/pages/settings/advanced-tab/tests/advanced-tab-component.test.js b/ui/app/pages/settings/advanced-tab/tests/advanced-tab-component.test.js
index 63d1eff7c24a..d45a0deab9ed 100644
--- a/ui/app/pages/settings/advanced-tab/tests/advanced-tab-component.test.js
+++ b/ui/app/pages/settings/advanced-tab/tests/advanced-tab-component.test.js
@@ -10,7 +10,7 @@ describe('AdvancedTab Component', () => {
const root = shallow(
{}}
+ setAutoLockTimeLimit={() => {}}
setIpfsGateway={() => {}}
setShowFiatConversionOnTestnetsPreference={() => {}}
setThreeBoxSyncingPermission={() => {}}
@@ -27,12 +27,12 @@ describe('AdvancedTab Component', () => {
assert.equal(root.find('.settings-page__content-row').length, 7)
})
- it('should update autoLogoutTimeLimit', () => {
- const setAutoLogoutTimeLimitSpy = sinon.spy()
+ it('should update autoLockTimeLimit', () => {
+ const setAutoLockTimeLimitSpy = sinon.spy()
const root = shallow(
{}}
setShowFiatConversionOnTestnetsPreference={() => {}}
setThreeBoxSyncingPermission={() => {}}
@@ -50,9 +50,9 @@ describe('AdvancedTab Component', () => {
const textField = autoTimeout.find(TextField)
textField.props().onChange({ target: { value: 1440 } })
- assert.equal(root.state().autoLogoutTimeLimit, 1440)
+ assert.equal(root.state().autoLockTimeLimit, 1440)
autoTimeout.find('.settings-tab__rpc-save-button').simulate('click')
- assert.equal(setAutoLogoutTimeLimitSpy.args[0][0], 1440)
+ assert.equal(setAutoLockTimeLimitSpy.args[0][0], 1440)
})
})
diff --git a/ui/app/pages/unlock-page/unlock-page.component.js b/ui/app/pages/unlock-page/unlock-page.component.js
index 3053250c7e6a..993c42d0e557 100644
--- a/ui/app/pages/unlock-page/unlock-page.component.js
+++ b/ui/app/pages/unlock-page/unlock-page.component.js
@@ -128,7 +128,7 @@ export default class UnlockPage extends Component {
onClick={this.handleSubmit}
disableRipple
>
- {this.context.t('login')}
+ {this.context.t('unlock')}
)
}
diff --git a/ui/app/store/actions.js b/ui/app/store/actions.js
index 6d9164480bfe..2f953e682334 100644
--- a/ui/app/store/actions.js
+++ b/ui/app/store/actions.js
@@ -2032,8 +2032,8 @@ export function setShowFiatConversionOnTestnetsPreference (value) {
return setPreference('showFiatInTestnets', value)
}
-export function setAutoLogoutTimeLimit (value) {
- return setPreference('autoLogoutTimeLimit', value)
+export function setAutoLockTimeLimit (value) {
+ return setPreference('autoLockTimeLimit', value)
}
export function setCompletedOnboarding () {