mirror of
https://github.com/kremalicious/metamask-extension.git
synced 2024-12-23 09:52:26 +01:00
Add link back to unlock.
This commit is contained in:
parent
5a02e58f62
commit
3a503d2ac2
@ -21,6 +21,7 @@ function mapStateToProps (state) {
|
|||||||
// state from plugin
|
// state from plugin
|
||||||
currentView: state.appState.currentView,
|
currentView: state.appState.currentView,
|
||||||
warning: state.appState.warning,
|
warning: state.appState.warning,
|
||||||
|
forgottenPassword: state.appState.forgottenPassword,
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -128,6 +129,17 @@ InitializeMenuScreen.prototype.renderMenu = function (state) {
|
|||||||
}, 'I already have a DEN that I would like to import'),
|
}, 'I already have a DEN that I would like to import'),
|
||||||
]),
|
]),
|
||||||
|
|
||||||
|
state.forgottenPassword ? h('.flex-row.flex-center.flex-grow', [
|
||||||
|
h('p.pointer', {
|
||||||
|
onClick: this.backToUnlockView.bind(this),
|
||||||
|
style: {
|
||||||
|
fontSize: '0.8em',
|
||||||
|
color: 'rgb(247, 134, 28)',
|
||||||
|
textDecoration: 'underline',
|
||||||
|
},
|
||||||
|
}, 'I remember my password!'),
|
||||||
|
]) : null,
|
||||||
|
|
||||||
])
|
])
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
@ -147,6 +159,10 @@ InitializeMenuScreen.prototype.showRestoreVault = function () {
|
|||||||
this.props.dispatch(actions.showRestoreVault())
|
this.props.dispatch(actions.showRestoreVault())
|
||||||
}
|
}
|
||||||
|
|
||||||
|
InitializeMenuScreen.prototype.backToUnlockView = function () {
|
||||||
|
this.props.dispatch(actions.backToUnlockView())
|
||||||
|
}
|
||||||
|
|
||||||
InitializeMenuScreen.prototype.createNewVaultAndKeychain = function () {
|
InitializeMenuScreen.prototype.createNewVaultAndKeychain = function () {
|
||||||
var passwordBox = document.getElementById('password-box')
|
var passwordBox = document.getElementById('password-box')
|
||||||
var password = passwordBox.value
|
var password = passwordBox.value
|
||||||
|
Loading…
Reference in New Issue
Block a user