aboutsummaryrefslogtreecommitdiffstats
path: root/ui/app/unlock.js
diff options
context:
space:
mode:
authorDan J Miller <danjm.com@gmail.com>2018-02-14 03:01:49 +0800
committerGitHub <noreply@github.com>2018-02-14 03:01:49 +0800
commitb4bfdc5e6c5e239397d2447dd9bb5d4ba744abba (patch)
tree16917a2467eb28d2fc24212d0ad1416480b716a5 /ui/app/unlock.js
parentc50a197ab95b462b4416cbf85139f80db9b70f0c (diff)
parentee1197192f2f539d5e63c8d65f77a5cd94bbd7df (diff)
downloadtangerine-wallet-browser-b4bfdc5e6c5e239397d2447dd9bb5d4ba744abba.tar
tangerine-wallet-browser-b4bfdc5e6c5e239397d2447dd9bb5d4ba744abba.tar.gz
tangerine-wallet-browser-b4bfdc5e6c5e239397d2447dd9bb5d4ba744abba.tar.bz2
tangerine-wallet-browser-b4bfdc5e6c5e239397d2447dd9bb5d4ba744abba.tar.lz
tangerine-wallet-browser-b4bfdc5e6c5e239397d2447dd9bb5d4ba744abba.tar.xz
tangerine-wallet-browser-b4bfdc5e6c5e239397d2447dd9bb5d4ba744abba.tar.zst
tangerine-wallet-browser-b4bfdc5e6c5e239397d2447dd9bb5d4ba744abba.zip
Merge pull request #3239 from MetaMask/uat-next
Uat next
Diffstat (limited to 'ui/app/unlock.js')
-rw-r--r--ui/app/unlock.js22
1 files changed, 21 insertions, 1 deletions
diff --git a/ui/app/unlock.js b/ui/app/unlock.js
index ec97b03bf..4b39bd3e2 100644
--- a/ui/app/unlock.js
+++ b/ui/app/unlock.js
@@ -5,6 +5,7 @@ const connect = require('react-redux').connect
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 Mascot = require('./components/mascot')
@@ -74,7 +75,10 @@ UnlockScreen.prototype.render = function () {
h('.flex-row.flex-center.flex-grow', [
h('p.pointer', {
- onClick: () => this.props.dispatch(actions.forgotPassword()),
+ onClick: () => {
+ this.props.dispatch(actions.markPasswordForgotten())
+ global.platform.openExtensionInBrowser()
+ },
style: {
fontSize: '0.8em',
color: 'rgb(247, 134, 28)',
@@ -82,6 +86,22 @@ UnlockScreen.prototype.render = function () {
},
}, 'Restore from seed phrase'),
]),
+
+ h('.flex-row.flex-center.flex-grow', [
+ h('p.pointer', {
+ onClick: () => {
+ this.props.dispatch(actions.setFeatureFlag('betaUI', false, 'OLD_UI_NOTIFICATION_MODAL'))
+ .then(() => this.props.dispatch(actions.setNetworkEndpoints(OLD_UI_NETWORK_TYPE)))
+ },
+ style: {
+ fontSize: '0.8em',
+ color: '#aeaeae',
+ textDecoration: 'underline',
+ marginTop: '32px',
+ },
+ }, 'Use classic interface'),
+ ]),
+
])
)
}