mirror of
https://github.com/kremalicious/metamask-extension.git
synced 2024-12-23 09:52:26 +01:00
Merge pull request #3231 from danjm/MM-744-restore-from-seed-fix
[NewUI] Only open a new window on restore from seed if in extension view.
This commit is contained in:
commit
eb61f69f92
@ -842,7 +842,6 @@ function showRestoreVault () {
|
||||
|
||||
function markPasswordForgotten () {
|
||||
return (dispatch) => {
|
||||
dispatch(actions.showLoadingIndication())
|
||||
return background.markPasswordForgotten(() => {
|
||||
dispatch(actions.hideLoadingIndication())
|
||||
dispatch(actions.forgotPassword())
|
||||
@ -853,7 +852,6 @@ function markPasswordForgotten () {
|
||||
|
||||
function unMarkPasswordForgotten () {
|
||||
return (dispatch) => {
|
||||
dispatch(actions.showLoadingIndication())
|
||||
return background.unMarkPasswordForgotten(() => {
|
||||
dispatch(actions.hideLoadingIndication())
|
||||
dispatch(actions.forgotPassword())
|
||||
|
@ -6,6 +6,7 @@ const actions = require('./actions')
|
||||
const getCaretCoordinates = require('textarea-caret')
|
||||
const EventEmitter = require('events').EventEmitter
|
||||
const { OLD_UI_NETWORK_TYPE } = require('../../app/scripts/config').enums
|
||||
const environmentType = require('../../app/scripts/lib/environment-type')
|
||||
|
||||
const Mascot = require('./components/mascot')
|
||||
|
||||
@ -77,7 +78,9 @@ UnlockScreen.prototype.render = function () {
|
||||
h('p.pointer', {
|
||||
onClick: () => {
|
||||
this.props.dispatch(actions.markPasswordForgotten())
|
||||
global.platform.openExtensionInBrowser()
|
||||
if (environmentType() === 'popup') {
|
||||
global.platform.openExtensionInBrowser()
|
||||
}
|
||||
},
|
||||
style: {
|
||||
fontSize: '0.8em',
|
||||
|
Loading…
Reference in New Issue
Block a user