aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDan J Miller <danjm.com@gmail.com>2018-02-14 03:02:29 +0800
committerGitHub <noreply@github.com>2018-02-14 03:02:29 +0800
commiteb61f69f922f5f83d2688bba46e0f594002d0dfa (patch)
treef2de793b132493be45a5b3f6c28f2acabc5ac93b
parentb4bfdc5e6c5e239397d2447dd9bb5d4ba744abba (diff)
parent5e9dc74a59d2507f36e1cb5796f97982f5f4993d (diff)
downloadtangerine-wallet-browser-eb61f69f922f5f83d2688bba46e0f594002d0dfa.tar
tangerine-wallet-browser-eb61f69f922f5f83d2688bba46e0f594002d0dfa.tar.gz
tangerine-wallet-browser-eb61f69f922f5f83d2688bba46e0f594002d0dfa.tar.bz2
tangerine-wallet-browser-eb61f69f922f5f83d2688bba46e0f594002d0dfa.tar.lz
tangerine-wallet-browser-eb61f69f922f5f83d2688bba46e0f594002d0dfa.tar.xz
tangerine-wallet-browser-eb61f69f922f5f83d2688bba46e0f594002d0dfa.tar.zst
tangerine-wallet-browser-eb61f69f922f5f83d2688bba46e0f594002d0dfa.zip
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.
-rw-r--r--ui/app/actions.js2
-rw-r--r--ui/app/unlock.js5
2 files changed, 4 insertions, 3 deletions
diff --git a/ui/app/actions.js b/ui/app/actions.js
index c6776eeee..4bc1f379e 100644
--- a/ui/app/actions.js
+++ b/ui/app/actions.js
@@ -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())
diff --git a/ui/app/unlock.js b/ui/app/unlock.js
index 4b39bd3e2..13c3f1274 100644
--- a/ui/app/unlock.js
+++ b/ui/app/unlock.js
@@ -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',