aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--CHANGELOG.md2
-rw-r--r--app/scripts/metamask-controller.js4
-rw-r--r--ui/app/components/buy-button-subview.js11
3 files changed, 15 insertions, 2 deletions
diff --git a/CHANGELOG.md b/CHANGELOG.md
index 93824e71c..36c03344c 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -2,6 +2,8 @@
## Current Master
+- Add link to Kovan Test Faucet instructions on buy view.
+
## 3.5.1 2017-3-27
- Fix edge case where users were unable to enable the notice button if notices were short enough to not require a scrollbar.
diff --git a/app/scripts/metamask-controller.js b/app/scripts/metamask-controller.js
index 92533e022..bab17dabd 100644
--- a/app/scripts/metamask-controller.js
+++ b/app/scripts/metamask-controller.js
@@ -623,6 +623,10 @@ module.exports = class MetamaskController extends EventEmitter {
case '3':
url = 'https://faucet.metamask.io/'
break
+
+ case '42':
+ url = 'https://github.com/kovan-testnet/faucet'
+ break
}
if (url) extension.tabs.create({ url })
diff --git a/ui/app/components/buy-button-subview.js b/ui/app/components/buy-button-subview.js
index 3074bd7cd..7b993110d 100644
--- a/ui/app/components/buy-button-subview.js
+++ b/ui/app/components/buy-button-subview.js
@@ -121,15 +121,22 @@ BuyButtonSubview.prototype.formVersionSubview = function () {
h('h3.text-transform-uppercase', {
style: {
width: '225px',
+ marginBottom: '15px',
},
}, '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', {
onClick: () => this.props.dispatch(actions.buyEth()),
style: {
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,
])
}
}