diff options
author | 2017-11-14 22:15:02 +0100 | |
---|---|---|
committer | 2017-11-14 22:15:02 +0100 | |
commit | cffaab954338f0062772d38d8f926620e1b5bcc5 (patch) | |
tree | 10619f59fb9242d5db276b8e2d31d203bced2028 /src/components | |
parent | Add missing EU tax info (diff) | |
download | ferdium-app-cffaab954338f0062772d38d8f926620e1b5bcc5.tar.gz ferdium-app-cffaab954338f0062772d38d8f926620e1b5bcc5.tar.zst ferdium-app-cffaab954338f0062772d38d8f926620e1b5bcc5.zip |
Disable Miner on Windows
Diffstat (limited to 'src/components')
-rw-r--r-- | src/components/ui/Subscription.js | 11 |
1 files changed, 8 insertions, 3 deletions
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'; | |||
7 | import Radio from '../ui/Radio'; | 7 | import Radio from '../ui/Radio'; |
8 | import Button from '../ui/Button'; | 8 | import Button from '../ui/Button'; |
9 | import Loader from '../ui/Loader'; | 9 | import Loader from '../ui/Loader'; |
10 | import { isWindows } from '../../environment'; | ||
10 | 11 | ||
11 | import { required } from '../../helpers/validation-helpers'; | 12 | import { required } from '../../helpers/validation-helpers'; |
12 | 13 | ||
@@ -148,14 +149,18 @@ export default class SubscriptionForm extends Component { | |||
148 | label: `€ ${Object.hasOwnProperty.call(this.props.plan, 'year') | 149 | label: `€ ${Object.hasOwnProperty.call(this.props.plan, 'year') |
149 | ? `${this.props.plan.year.price} / ${intl.formatMessage(messages.typeYearly)}` | 150 | ? `${this.props.plan.year.price} / ${intl.formatMessage(messages.typeYearly)}` |
150 | : 'yearly'}`, | 151 | : 'yearly'}`, |
151 | }, { | ||
152 | value: 'mining', | ||
153 | label: intl.formatMessage(messages.typeMining), | ||
154 | }], | 152 | }], |
155 | }, | 153 | }, |
156 | }, | 154 | }, |
157 | }; | 155 | }; |
158 | 156 | ||
157 | if (!isWindows) { | ||
158 | form.fields.paymentTier.options.push({ | ||
159 | value: 'mining', | ||
160 | label: intl.formatMessage(messages.typeMining), | ||
161 | }); | ||
162 | } | ||
163 | |||
159 | if (this.props.showSkipOption) { | 164 | if (this.props.showSkipOption) { |
160 | form.fields.paymentTier.options.unshift({ | 165 | form.fields.paymentTier.options.unshift({ |
161 | value: 'skip', | 166 | value: 'skip', |