diff options
author | kumavis <aaron@kumavis.me> | 2017-04-05 09:23:46 +0800 |
---|---|---|
committer | kumavis <aaron@kumavis.me> | 2017-04-05 09:23:46 +0800 |
commit | 5a91adf7d802097805938e3d54fe7256b19724d1 (patch) | |
tree | 9ad83ef345650796822b5462cff0d0bf5eab9b22 /ui/app/components/buy-button-subview.js | |
parent | 5d967eeebb9f3cf4c2d3fcfe0b74cf6e8440c3cb (diff) | |
download | tangerine-wallet-browser-5a91adf7d802097805938e3d54fe7256b19724d1.tar.gz tangerine-wallet-browser-5a91adf7d802097805938e3d54fe7256b19724d1.tar.zst tangerine-wallet-browser-5a91adf7d802097805938e3d54fe7256b19724d1.zip |
add platforms to mascara + move buyEther window open to ui
Diffstat (limited to 'ui/app/components/buy-button-subview.js')
-rw-r--r-- | ui/app/components/buy-button-subview.js | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/ui/app/components/buy-button-subview.js b/ui/app/components/buy-button-subview.js index 2b1675b6d..6810303e1 100644 --- a/ui/app/components/buy-button-subview.js +++ b/ui/app/components/buy-button-subview.js @@ -104,7 +104,8 @@ BuyButtonSubview.prototype.render = function () { } BuyButtonSubview.prototype.formVersionSubview = function () { - if (this.props.network === '1') { + const network = this.props.network + if (network === '1') { if (this.props.buyView.formView.coinbase) { return h(CoinbaseForm, this.props) } else if (this.props.buyView.formView.shapeshift) { @@ -123,15 +124,15 @@ BuyButtonSubview.prototype.formVersionSubview = function () { marginBottom: '15px', }, }, 'In order to access this feature, please switch to the Main Network'), - ((this.props.network === '3') || (this.props.network === '42')) ? h('h3.text-transform-uppercase', 'or go to the') : null, - (this.props.network === '3') ? h('button.text-transform-uppercase', { - onClick: () => this.props.dispatch(actions.buyEth()), + ((network === '3') || (network === '42')) ? h('h3.text-transform-uppercase', 'or go to the') : null, + (network === '3') ? h('button.text-transform-uppercase', { + onClick: () => this.props.dispatch(actions.buyEth({ network })), style: { marginTop: '15px', }, }, 'Ropsten Test Faucet') : null, - (this.props.network === '42') ? h('button.text-transform-uppercase', { - onClick: () => this.props.dispatch(actions.buyEth()), + (network === '42') ? h('button.text-transform-uppercase', { + onClick: () => this.props.dispatch(actions.buyEth({ network })), style: { marginTop: '15px', }, |