From cffaab954338f0062772d38d8f926620e1b5bcc5 Mon Sep 17 00:00:00 2001 From: Stefan Malzner Date: Tue, 14 Nov 2017 22:15:02 +0100 Subject: Disable Miner on Windows --- src/components/ui/Subscription.js | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) (limited to 'src/components/ui/Subscription.js') diff --git a/src/components/ui/Subscription.js b/src/components/ui/Subscription.js index 35a1105d2..80ee2d9d2 100644 --- a/src/components/ui/Subscription.js +++ b/src/components/ui/Subscription.js @@ -7,6 +7,7 @@ import Form from '../../lib/Form'; import Radio from '../ui/Radio'; import Button from '../ui/Button'; import Loader from '../ui/Loader'; +import { isWindows } from '../../environment'; import { required } from '../../helpers/validation-helpers'; @@ -148,14 +149,18 @@ export default class SubscriptionForm extends Component { label: `€ ${Object.hasOwnProperty.call(this.props.plan, 'year') ? `${this.props.plan.year.price} / ${intl.formatMessage(messages.typeYearly)}` : 'yearly'}`, - }, { - value: 'mining', - label: intl.formatMessage(messages.typeMining), }], }, }, }; + if (!isWindows) { + form.fields.paymentTier.options.push({ + value: 'mining', + label: intl.formatMessage(messages.typeMining), + }); + } + if (this.props.showSkipOption) { form.fields.paymentTier.options.unshift({ value: 'skip', -- cgit v1.2.3-70-g09d2