aboutsummaryrefslogtreecommitdiffstats
path: root/mascara
diff options
context:
space:
mode:
authorDan <danjm.com@gmail.com>2018-02-21 08:21:45 +0800
committerDan <danjm.com@gmail.com>2018-02-21 08:22:41 +0800
commit66f55f954e9f3868396e478fd79c4bbd8f8673e5 (patch)
treee9971a0a83702cba2090f0c38ff3055f56604d3c /mascara
parent98d3fba3efaedb65ee0cf60b4cc3f954a1fd9740 (diff)
downloadtangerine-wallet-browser-66f55f954e9f3868396e478fd79c4bbd8f8673e5.tar.gz
tangerine-wallet-browser-66f55f954e9f3868396e478fd79c4bbd8f8673e5.tar.zst
tangerine-wallet-browser-66f55f954e9f3868396e478fd79c4bbd8f8673e5.zip
Render loading inside notice screen, and don't set isLoading from unMarkPasswordForgotten.
Diffstat (limited to 'mascara')
-rw-r--r--mascara/src/app/first-time/index.js11
-rw-r--r--mascara/src/app/first-time/notice-screen.js44
2 files changed, 24 insertions, 31 deletions
diff --git a/mascara/src/app/first-time/index.js b/mascara/src/app/first-time/index.js
index 46b821c8b..da2f6bab9 100644
--- a/mascara/src/app/first-time/index.js
+++ b/mascara/src/app/first-time/index.js
@@ -7,7 +7,6 @@ import NoticeScreen from './notice-screen'
import BackupPhraseScreen from './backup-phrase-screen'
import ImportAccountScreen from './import-account-screen'
import ImportSeedPhraseScreen from './import-seed-phrase-screen'
-const Loading = require('../../../../ui/app/components/loading')
import {
onboardingBuyEthView,
unMarkPasswordForgotten,
@@ -85,15 +84,9 @@ class FirstTimeFlow extends Component {
address,
restoreCreatePasswordScreen,
forgottenPassword,
- isLoading,
leaveImportSeedScreenState,
} = this.props
- // Disable until testing bug resolved
- // if (isLoading) {
- // return (<Loading />)
- // }
-
switch (this.state.screenType) {
case SCREEN_TYPE.CREATE_PASSWORD:
return (
@@ -164,9 +157,6 @@ export default connect(
noActiveNotices,
selectedAddress,
forgottenPassword,
- },
- appState: {
- isLoading,
}
}) => ({
isInitialized,
@@ -174,7 +164,6 @@ export default connect(
noActiveNotices,
address: selectedAddress,
forgottenPassword,
- isLoading,
}),
dispatch => ({
leaveImportSeedScreenState: () => dispatch(unMarkPasswordForgotten()),
diff --git a/mascara/src/app/first-time/notice-screen.js b/mascara/src/app/first-time/notice-screen.js
index e691a2f47..0f0a7e95d 100644
--- a/mascara/src/app/first-time/notice-screen.js
+++ b/mascara/src/app/first-time/notice-screen.js
@@ -6,6 +6,7 @@ import debounce from 'lodash.debounce'
import {markNoticeRead} from '../../../../ui/app/actions'
import Identicon from '../../../../ui/app/components/identicon'
import Breadcrumbs from './breadcrumbs'
+import LoadingScreen from './loading-screen'
class NoticeScreen extends Component {
static propTypes = {
@@ -55,36 +56,39 @@ class NoticeScreen extends Component {
const {
address,
lastUnreadNotice: { title, body },
+ isLoading,
} = this.props
const { atBottom } = this.state
return (
- <div
- className="tou"
- onScroll={this.onScroll}
- >
- <Identicon address={address} diameter={70} />
- <div className="tou__title">{title}</div>
- <Markdown
- className="tou__body markdown"
- source={body}
- skipHtml
- />
- <button
- className="first-time-flow__button"
- onClick={atBottom && this.acceptTerms}
- disabled={!atBottom}
+ isLoading
+ ? <LoadingScreen />
+ : <div
+ className="tou"
+ onScroll={this.onScroll}
>
- Accept
- </button>
- <Breadcrumbs total={3} currentIndex={2} />
- </div>
+ <Identicon address={address} diameter={70} />
+ <div className="tou__title">{title}</div>
+ <Markdown
+ className="tou__body markdown"
+ source={body}
+ skipHtml
+ />
+ <button
+ className="first-time-flow__button"
+ onClick={atBottom && this.acceptTerms}
+ disabled={!atBottom}
+ >
+ Accept
+ </button>
+ <Breadcrumbs total={3} currentIndex={2} />
+ </div>
)
}
}
export default connect(
- ({ metamask: { selectedAddress, lastUnreadNotice } }) => ({
+ ({ metamask: { selectedAddress, lastUnreadNotice }, appState: { isLoading } }) => ({
lastUnreadNotice,
address: selectedAddress,
}),
rts-gnome/commit/www/squid26?id=eb2ddd562d041ba7a4e1a324cfdb3073595352d4'>- Fix somewhat messed up titles in FTP listings (squid bug #1220)sem2005-09-042-3/+54 * - Update transparent patch.flz2005-07-012-4/+4 * Update the chroot vendor patch to version 2, cfjylefort2005-06-302-4/+4 * - Integrate the following vendor patches as published onahze2005-06-283-16/+38 * - Read cachemgr.conf rather than cachemgr.conf.defaultjylefort2005-05-222-12/+6 * - Update Squid to 2.5.STABLE10pav2005-05-195-85/+28 * - update distinfo for the updated syslog patchvs2005-04-272-31/+2 * - Update distinfo for the 2GB patch, this includes a fix forleeym2005-04-211-1/+1 * - according web page, the patch file is rerolled at 2005-04-20 14:59 againleeym2005-04-211-2/+2 * - the patch is repacked at 2005-04-18 00:57, after maintainer submit PR 80028leeym2005-04-181-2/+2 * Integrate the following vendor patches as published onleeym2005-04-183-2/+62 * - Chase checksum of the updated pid_t patchahze2005-03-162-3/+3 * - Integrate the following vendor patches as published onahze2005-03-142-11/+47 * Integrate the following vendor patches as published onpav2005-03-092-1/+13 * - Update to 2.5.STABLE9pav2005-02-262-20/+5 * * Vendor patches:pav2005-02-212-1/+14 * - Update to 2.5-STABLE8sem2005-02-143-224/+7 * - Update header_parsing.patchpav2005-02-113-36/+3 * Integrate the following vendor patch as published onnectar2005-02-082-2/+20 * - Fix fetching.sem2005-02-012-3/+3 * - Integrate a vendor patch against a buffer overflow in the WCCP handling,sem2005-01-302-2/+5 * Sync follow-XFF with the latest vendor patch.krion2005-01-291-5/+5 * - Integrate vendor patches as published onsem2005-01-274-42/+213 * [Maintainer/security] www/squid: protect against HTTP resonse splitedwin2005-01-222-2/+11 * [Maintainer/Security] www/squid: integrate vendor patchesedwin2005-01-192-2/+11 * - Integrate vendor patches as published onsimon2005-01-132-4/+20 * Patch was rerolled because of some bug fixes.krion2004-12-291-2/+2 * Handle empty ACL definitions properly.krion2004-12-232-2/+5 * Integrate the following vendor patches as published onsem2004-12-092-2/+11 * - fix shutting down of helper applications on reconfigure orkrion2004-11-142-2/+8 * - Integrate the following vendor patches:sergei2004-10-272-2/+8 * - Integrate a vendor patch that prevents squid from consuming 100%sergei2004-10-193-15/+20 * - Update to 2.5-STABLE7; this release fixes a security issue regardingsergei2004-10-135-103/+26 * - Unbreak fetching squid again:sergei2004-10-112-3/+3 * - Unbreak fetching:sergei2004-10-072-2/+2 * Implement vendor patches for the following issues:sem2004-09-025-72/+93 * Integrate vendor patches for the following issues:sem2004-08-292-2/+11 * Fix grammatical and whitespace errors in squid.conf.default.krion2004-08-213-14/+20 * * Integrate a vendor patch for a possible DOS against the NTLMsem2004-08-202-2/+5 * The ldap_helpers patch has been updated again; see squid bugkrion2004-08-121-2/+2 * Integrate new vendor patches:krion2004-08-082-2/+8 * [Maintainer] www/squid: chase re-issued patch, unbreak fetchingedwin2004-07-302-3/+3 * - integrate a new version of the LDAP update patch, thekrion2004-07-292-8/+8 * Fix a bug that disallowed explicit unsetting of the squid_flags variable.ijliao2004-07-281-1/+1 * - Tweaks to RC scriptpav2004-07-262-12/+47 * Remove ldap_helpers.patchsem2004-07-251-2/+0 * Remove squid-2.5.STABLE6-ldap_helpers.patch until it is fixed.eik2004-07-231-1/+0 * The ldap_helpers patch has been rerolled (a missing returnkrion2004-07-222-3/+3 * Integrate the following vendor patches as published onkrion2004-07-202-9/+55 * Update to 2.5-STABLE6krion2004-07-152-113/+42 * Fix the patch that simulates the autotools bootstrap for thekrion2004-06-294-86/+24 * Correct the patch for the NTLM helper vulnerability accordingkrion2004-06-182-23/+12 * - Support systems where pf(4) must be installed from ports (seekrion2004-06-105-14/+42 * Add a couple of patches, including one for a buffer overflow in the NTLMdes2004-06-103-2/+95 * - correct report of available cache memory for cache sizes >2GBkrion2004-06-032-2/+23 * - Add new vendor patches:krion2004-05-022-2/+14 * - Fix plistkrion2004-04-292-6/+6 * - Add a vendor patch to fix an assertion failure that couldkrion2004-04-202-2/+5 * - integrate a vendor patch to fix a segfault that occured whenkrion2004-04-193-13/+23 * - Integrate a vendor patch that fixes an assertion caused bykrion2004-04-122-2/+5 * - Integrate two new vendor patches, please seekrion2004-04-104-13/+32 * - Integrate four new vendor patches applicable to FreeBSD, seepav2004-04-013-4/+26 * - update to squid-2.5.STABLE5, including two vendor patches issued so farsergei2004-03-178-209/+673 * - Integrate a new set of vendor patches, seeeik2004-02-244-167/+35 * - integrate a new patch from squid-cache.org, seesergei2004-02-174-16/+152 * - Update distinfo for the http_workarounds patch (again)sergei2004-02-024-116/+140 * The http_workarounds.patch has been updated, update distinfo accordingly.ijliao2004-01-201-1/+1 * - integrate another patch from squid-cache.org, seeijliao2004-01-193-11/+58 * - configure squid to run under a dedicated "squid" user by default; make usesergei2004-01-178-1017/+419 * - Integrate another patch for the LDAP authentication helpersergei2004-01-102-4/+6 * - Integrate a new patch issued by the squid development teamsergei2004-01-063-2/+16