aboutsummaryrefslogtreecommitdiffstats
path: root/ui/app/app.js
diff options
context:
space:
mode:
authorKevin Serrano <kevgagser@gmail.com>2017-02-16 07:56:25 +0800
committerGitHub <noreply@github.com>2017-02-16 07:56:25 +0800
commit3bd23564fbdc5dc81c23f5246956c4de07fb1601 (patch)
treed3db707f1c2e8236c78e143b48e1a2fd9f0323f9 /ui/app/app.js
parentf2539d125c2cfe240511f8505e222a9893bf7748 (diff)
parent352bb5cb3941c3a07b383c2400dae337771c6d3a (diff)
downloadtangerine-wallet-browser-3bd23564fbdc5dc81c23f5246956c4de07fb1601.tar
tangerine-wallet-browser-3bd23564fbdc5dc81c23f5246956c4de07fb1601.tar.gz
tangerine-wallet-browser-3bd23564fbdc5dc81c23f5246956c4de07fb1601.tar.bz2
tangerine-wallet-browser-3bd23564fbdc5dc81c23f5246956c4de07fb1601.tar.lz
tangerine-wallet-browser-3bd23564fbdc5dc81c23f5246956c4de07fb1601.tar.xz
tangerine-wallet-browser-3bd23564fbdc5dc81c23f5246956c4de07fb1601.tar.zst
tangerine-wallet-browser-3bd23564fbdc5dc81c23f5246956c4de07fb1601.zip
Merge pull request #1121 from MetaMask/dev
Merge dev into master
Diffstat (limited to 'ui/app/app.js')
-rw-r--r--ui/app/app.js32
1 files changed, 13 insertions, 19 deletions
diff --git a/ui/app/app.js b/ui/app/app.js
index 3bc4897c8..8aae38067 100644
--- a/ui/app/app.js
+++ b/ui/app/app.js
@@ -5,7 +5,6 @@ const h = require('react-hyperscript')
const actions = require('./actions')
const ReactCSSTransitionGroup = require('react-addons-css-transition-group')
// init
-const DisclaimerScreen = require('./first-time/disclaimer')
const InitializeMenuScreen = require('./first-time/init-menu')
const NewKeyChainScreen = require('./new-keychain')
// unlock
@@ -44,7 +43,6 @@ function mapStateToProps (state) {
// state from plugin
isLoading: state.appState.isLoading,
loadingMessage: state.appState.loadingMessage,
- isDisclaimerConfirmed: state.metamask.isDisclaimerConfirmed,
noActiveNotices: state.metamask.noActiveNotices,
isInitialized: state.metamask.isInitialized,
isUnlocked: state.metamask.isUnlocked,
@@ -351,8 +349,19 @@ App.prototype.renderBackButton = function (style, justArrow = false) {
App.prototype.renderPrimary = function () {
var props = this.props
- if (!props.isDisclaimerConfirmed) {
- return h(DisclaimerScreen, {key: 'disclaimerScreen'})
+ // notices
+ if (!props.noActiveNotices && !global.METAMASK_DEBUG) {
+ return h(NoticeScreen, {
+ notice: props.lastUnreadNotice,
+ key: 'NoticeScreen',
+ onConfirm: () => props.dispatch(actions.markNoticeRead(props.lastUnreadNotice)),
+ })
+ } else if (props.lostAccounts && props.lostAccounts.length > 0) {
+ return h(NoticeScreen, {
+ notice: generateLostAccountsNotice(props.lostAccounts),
+ key: 'LostAccountsNotice',
+ onConfirm: () => props.dispatch(actions.markAccountsFound()),
+ })
}
if (props.seedWords) {
@@ -384,21 +393,6 @@ App.prototype.renderPrimary = function () {
}
}
- // notices
- if (!props.noActiveNotices) {
- return h(NoticeScreen, {
- notice: props.lastUnreadNotice,
- key: 'NoticeScreen',
- onConfirm: () => props.dispatch(actions.markNoticeRead(props.lastUnreadNotice)),
- })
- } else if (props.lostAccounts && props.lostAccounts.length > 0) {
- return h(NoticeScreen, {
- notice: generateLostAccountsNotice(props.lostAccounts),
- key: 'LostAccountsNotice',
- onConfirm: () => props.dispatch(actions.markAccountsFound()),
- })
- }
-
// show current view
switch (props.currentView.name) {