aboutsummaryrefslogtreecommitdiffstats
path: root/old-ui/app
diff options
context:
space:
mode:
authorThomas <tmashuang@gmail.com>2018-04-11 23:35:31 +0800
committerThomas <tmashuang@gmail.com>2018-04-11 23:35:31 +0800
commitf82c51c2c4782f54fb1d690f2dc1c309fafefe65 (patch)
tree84e5d2a1b989459f3dbb6f74e1921b4b83f705a0 /old-ui/app
parent30474ccd35d5d7f30ffb8dff0acc8fbc77f44731 (diff)
parent29dab1e9e00c1c1e6ad834026df51b2839d3171d (diff)
downloadtangerine-wallet-browser-f82c51c2c4782f54fb1d690f2dc1c309fafefe65.tar.gz
tangerine-wallet-browser-f82c51c2c4782f54fb1d690f2dc1c309fafefe65.tar.zst
tangerine-wallet-browser-f82c51c2c4782f54fb1d690f2dc1c309fafefe65.zip
Merge branch 'master' into testing
Diffstat (limited to 'old-ui/app')
-rw-r--r--old-ui/app/app.js1
-rw-r--r--old-ui/app/components/buy-button-subview.js1
-rw-r--r--old-ui/app/components/qr-code.js1
-rw-r--r--old-ui/app/components/range-slider.js4
-rw-r--r--old-ui/app/components/transaction-list-item.js2
-rw-r--r--old-ui/app/config.js2
-rw-r--r--old-ui/app/util.js1
7 files changed, 5 insertions, 7 deletions
diff --git a/old-ui/app/app.js b/old-ui/app/app.js
index e9ab185f3..37611987f 100644
--- a/old-ui/app/app.js
+++ b/old-ui/app/app.js
@@ -581,7 +581,6 @@ App.prototype.renderPrimary = function () {
case 'qr':
log.debug('rendering show qr screen')
- console.log(`QrView`, QrView);
return h('div', {
style: {
position: 'absolute',
diff --git a/old-ui/app/components/buy-button-subview.js b/old-ui/app/components/buy-button-subview.js
index 843627c33..56d173839 100644
--- a/old-ui/app/components/buy-button-subview.js
+++ b/old-ui/app/components/buy-button-subview.js
@@ -247,7 +247,6 @@ BuyButtonSubview.prototype.backButtonContext = function () {
if (this.props.context === 'confTx') {
this.props.dispatch(actions.showConfTxPage(false))
} else {
- console.log(`actions.goHome`, actions.goHome);
this.props.dispatch(actions.goHome())
}
}
diff --git a/old-ui/app/components/qr-code.js b/old-ui/app/components/qr-code.js
index fa38dcd92..06b9aed9b 100644
--- a/old-ui/app/components/qr-code.js
+++ b/old-ui/app/components/qr-code.js
@@ -25,7 +25,6 @@ function QrCodeView () {
QrCodeView.prototype.render = function () {
const props = this.props
const Qr = props.Qr
- console.log(`QrCodeView Qr`, Qr);
const address = `${isHexPrefixed(Qr.data) ? 'ethereum:' : ''}${Qr.data}`
const qrImage = qrCode(4, 'M')
qrImage.addData(address)
diff --git a/old-ui/app/components/range-slider.js b/old-ui/app/components/range-slider.js
index 823f5eb01..bae740a74 100644
--- a/old-ui/app/components/range-slider.js
+++ b/old-ui/app/components/range-slider.js
@@ -35,7 +35,7 @@ RangeSlider.prototype.render = function () {
step: increment,
style: range,
value: state.value || defaultValue,
- onChange: mirrorInput ? this.mirrorInputs.bind(this, event) : onInput,
+ onChange: mirrorInput ? this.mirrorInputs.bind(this) : onInput,
}),
// Mirrored input for range
@@ -47,7 +47,7 @@ RangeSlider.prototype.render = function () {
value: state.value || defaultValue,
step: increment,
style: input,
- onChange: this.mirrorInputs.bind(this, event),
+ onChange: this.mirrorInputs.bind(this),
}) : null,
])
)
diff --git a/old-ui/app/components/transaction-list-item.js b/old-ui/app/components/transaction-list-item.js
index f7d59005a..b9f82c668 100644
--- a/old-ui/app/components/transaction-list-item.js
+++ b/old-ui/app/components/transaction-list-item.js
@@ -30,7 +30,7 @@ function TransactionListItem () {
TransactionListItem.prototype.showRetryButton = function () {
const { transaction = {}, transactions } = this.props
- const { status, submittedTime, txParams } = transaction
+ const { submittedTime, txParams } = transaction
if (!txParams) {
return false
diff --git a/old-ui/app/config.js b/old-ui/app/config.js
index 7da3694ac..508770bd4 100644
--- a/old-ui/app/config.js
+++ b/old-ui/app/config.js
@@ -42,7 +42,7 @@ ConfigScreen.prototype.render = function () {
// subtitle and nav
h('.section-title.flex-row.flex-center', [
h('i.fa.fa-arrow-left.fa-lg.cursor-pointer', {
- onClick: (event) => {
+ onClick: () => {
state.dispatch(actions.goHome())
},
}),
diff --git a/old-ui/app/util.js b/old-ui/app/util.js
index 3f8b4dcc3..962832ce7 100644
--- a/old-ui/app/util.js
+++ b/old-ui/app/util.js
@@ -231,6 +231,7 @@ function exportAsFile (filename, data) {
window.navigator.msSaveBlob(blob, filename)
} else {
const elem = window.document.createElement('a')
+ elem.target = '_blank'
elem.href = window.URL.createObjectURL(blob)
elem.download = filename
document.body.appendChild(elem)