1
0
mirror of https://github.com/kremalicious/metamask-extension.git synced 2024-12-23 09:52:26 +01:00

Modify forgot password flow to go back to init screen.

This commit is contained in:
Kevin Serrano 2016-11-23 13:05:02 -08:00
parent ec8b0148f0
commit 5251fb373f
No known key found for this signature in database
GPG Key ID: 7CC862A58D2889B4
2 changed files with 1 additions and 36 deletions

View File

@ -90,7 +90,6 @@ App.prototype.render = function () {
transitionLeaveTimeout: 300, transitionLeaveTimeout: 300,
}, [ }, [
this.renderPrimary(), this.renderPrimary(),
this.renderBackToInitButton(),
]), ]),
]), ]),
]) ])
@ -337,39 +336,6 @@ App.prototype.renderBackButton = function (style, justArrow = false) {
) )
} }
App.prototype.renderBackToInitButton = function () {
var props = this.props
var button = null
if (!props.isDisclaimerConfirmed) return button
if (!props.isUnlocked) {
if (props.currentView.name === 'InitMenu') {
button = props.forgottenPassword ? h('.flex-row', {
key: 'rightArrow',
style: {
position: 'absolute',
bottom: '10px',
right: '15px',
fontSize: '21px',
fontFamily: 'Montserrat Light',
color: '#7F8082',
width: '77.578px',
alignItems: 'flex-end',
},
}, [
h('div.cursor-pointer', {
style: {
marginRight: '3px',
},
onClick: () => props.dispatch(actions.backToUnlockView()),
}, 'LOGIN'),
h('i.fa.fa-arrow-right.cursor-pointer'),
]) : null
}
}
return button
}
App.prototype.renderPrimary = function () { App.prototype.renderPrimary = function () {
var props = this.props var props = this.props

View File

@ -70,7 +70,7 @@ UnlockScreen.prototype.render = function () {
h('.flex-row.flex-center.flex-grow', [ h('.flex-row.flex-center.flex-grow', [
h('p.pointer', { h('p.pointer', {
onClick: () => this.props.dispatch(actions.showRestoreVault()), onClick: () => this.props.dispatch(actions.goBackToInitView()),
style: { style: {
fontSize: '0.8em', fontSize: '0.8em',
color: 'rgb(247, 134, 28)', color: 'rgb(247, 134, 28)',
@ -116,4 +116,3 @@ UnlockScreen.prototype.inputChanged = function (event) {
y: boundingRect.top + coordinates.top - element.scrollTop, y: boundingRect.top + coordinates.top - element.scrollTop,
}) })
} }