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:
parent
ec8b0148f0
commit
5251fb373f
@ -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
|
||||||
|
|
||||||
|
@ -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,
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user