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:
parent
d6d85d28bb
commit
c1136a6317
@ -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 })
|
||||||
|
@ -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,
|
||||||
])
|
])
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user