aboutsummaryrefslogtreecommitdiffstats
path: root/ui/app/first-time
diff options
context:
space:
mode:
authorKevin Serrano <kevgagser@gmail.com>2016-10-05 08:42:17 +0800
committerKevin Serrano <kevgagser@gmail.com>2016-10-05 08:42:17 +0800
commit3628c5b324b1c9afb052bb73bd53026d51116545 (patch)
tree5eda73d6ebea32184df11d05a94b95f1a564197d /ui/app/first-time
parent86718693117ae9204f6bb8bbec9d5e53b2b7083e (diff)
downloadtangerine-wallet-browser-3628c5b324b1c9afb052bb73bd53026d51116545.tar
tangerine-wallet-browser-3628c5b324b1c9afb052bb73bd53026d51116545.tar.gz
tangerine-wallet-browser-3628c5b324b1c9afb052bb73bd53026d51116545.tar.bz2
tangerine-wallet-browser-3628c5b324b1c9afb052bb73bd53026d51116545.tar.lz
tangerine-wallet-browser-3628c5b324b1c9afb052bb73bd53026d51116545.tar.xz
tangerine-wallet-browser-3628c5b324b1c9afb052bb73bd53026d51116545.tar.zst
tangerine-wallet-browser-3628c5b324b1c9afb052bb73bd53026d51116545.zip
Implemented scroll-to-bottom functionality for button activation.
Diffstat (limited to 'ui/app/first-time')
-rw-r--r--ui/app/first-time/disclaimer.js12
1 files changed, 10 insertions, 2 deletions
diff --git a/ui/app/first-time/disclaimer.js b/ui/app/first-time/disclaimer.js
index c6174a220..244b7bc97 100644
--- a/ui/app/first-time/disclaimer.js
+++ b/ui/app/first-time/disclaimer.js
@@ -50,6 +50,14 @@ DisclaimerScreen.prototype.render = function () {
`),
h('div.markdown', {
+ onScroll: (e) => {
+ var object = e.currentTarget
+ if (object.offsetHeight + object.scrollTop + 100 >= object.scrollHeight) {
+ var button = document.getElementById('agree')
+ button.disabled = false
+ button.addEventListener('click', () => this.props.dispatch(actions.agreeToDisclaimer()))
+ }
+ },
style: {
// whiteSpace: 'pre-line',
background: 'rgb(235, 235, 235)',
@@ -67,11 +75,11 @@ DisclaimerScreen.prototype.render = function () {
]),
- h('button', {
+ h('button#agree', {
style: { marginTop: '18px' },
+ disabled: true,
onClick: () => this.props.dispatch(actions.agreeToDisclaimer()),
}, 'I Agree'),
])
)
}
-