1
0
mirror of https://github.com/kremalicious/metamask-extension.git synced 2024-12-23 01:39:44 +01:00

Add link to kovan faucet instructions.

This commit is contained in:
Kevin Serrano 2017-03-27 16:05:21 -04:00
parent d6d85d28bb
commit c1136a6317
No known key found for this signature in database
GPG Key ID: BF999DEFC7371BA1
2 changed files with 13 additions and 2 deletions

View File

@ -623,6 +623,10 @@ module.exports = class MetamaskController extends EventEmitter {
case '3': case '3':
url = 'https://faucet.metamask.io/' url = 'https://faucet.metamask.io/'
break break
case '42':
url = 'https://github.com/kovan-testnet/faucet'
break
} }
if (url) extension.tabs.create({ url }) if (url) extension.tabs.create({ url })

View File

@ -121,15 +121,22 @@ BuyButtonSubview.prototype.formVersionSubview = function () {
h('h3.text-transform-uppercase', { h('h3.text-transform-uppercase', {
style: { style: {
width: '225px', width: '225px',
marginBottom: '15px',
}, },
}, 'In order to access this feature, please switch to the Main Network'), }, 'In order to access this feature, please switch to the Main Network'),
(this.props.network === '3') ? h('h3.text-transform-uppercase', 'or:') : null, ((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', { (this.props.network === '3') ? h('button.text-transform-uppercase', {
onClick: () => this.props.dispatch(actions.buyEth()), onClick: () => this.props.dispatch(actions.buyEth()),
style: { style: {
marginTop: '15px', marginTop: '15px',
}, },
}, 'Go To Test Faucet') : null, }, 'Ropsten Test Faucet') : null,
(this.props.network === '42') ? h('button.text-transform-uppercase', {
onClick: () => this.props.dispatch(actions.buyEth()),
style: {
marginTop: '15px',
},
}, 'Kovan Test Faucet') : null,
]) ])
} }
} }