diff options
-rw-r--r-- | appveyor.yml | 1 | ||||
-rw-r--r-- | electron-builder.yml | 2 | ||||
-rw-r--r-- | package.json | 1 | ||||
-rw-r--r-- | src/components/services/tabs/Tabbar.js | 3 | ||||
-rw-r--r-- | src/components/ui/Subscription.js | 3 | ||||
-rw-r--r-- | src/lib/TouchBar.js | 18 | ||||
-rw-r--r-- | src/stores/ServicesStore.js | 6 |
7 files changed, 23 insertions, 11 deletions
diff --git a/appveyor.yml b/appveyor.yml index 11dea16c2..a8e55d25f 100644 --- a/appveyor.yml +++ b/appveyor.yml | |||
@@ -31,3 +31,4 @@ notifications: | |||
31 | 31 | ||
32 | artifacts: | 32 | artifacts: |
33 | - path: out\*.exe | 33 | - path: out\*.exe |
34 | - path: out\*.yml | ||
diff --git a/electron-builder.yml b/electron-builder.yml index 3f7ad1e85..adc8f8ae9 100644 --- a/electron-builder.yml +++ b/electron-builder.yml | |||
@@ -2,7 +2,7 @@ directories: | |||
2 | app: ./build | 2 | app: ./build |
3 | output: ./out | 3 | output: ./out |
4 | 4 | ||
5 | # forceCodeSigning: true | 5 | appId: "com.meetfranz.franz" |
6 | 6 | ||
7 | compression: maximum | 7 | compression: maximum |
8 | 8 | ||
diff --git a/package.json b/package.json index f9f6ca91c..ac9c96339 100644 --- a/package.json +++ b/package.json | |||
@@ -65,6 +65,7 @@ | |||
65 | "react-sortable-hoc": "^0.6.7", | 65 | "react-sortable-hoc": "^0.6.7", |
66 | "react-tooltip": "^3.2.7", | 66 | "react-tooltip": "^3.2.7", |
67 | "route-parser": "^0.0.5", | 67 | "route-parser": "^0.0.5", |
68 | "semver": "^5.4.1", | ||
68 | "smoothscroll-polyfill": "^0.3.4", | 69 | "smoothscroll-polyfill": "^0.3.4", |
69 | "tar": "^4.0.2", | 70 | "tar": "^4.0.2", |
70 | "uuid": "^3.0.1" | 71 | "uuid": "^3.0.1" |
diff --git a/src/components/services/tabs/Tabbar.js b/src/components/services/tabs/Tabbar.js index fd4325107..9da1090b7 100644 --- a/src/components/services/tabs/Tabbar.js +++ b/src/components/services/tabs/Tabbar.js | |||
@@ -30,6 +30,8 @@ export default class TabBar extends Component { | |||
30 | reorder({ oldIndex, newIndex }); | 30 | reorder({ oldIndex, newIndex }); |
31 | }; | 31 | }; |
32 | 32 | ||
33 | shouldPreventSorting = event => event.target.tagName !== 'LI'; | ||
34 | |||
33 | toggleService = ({ serviceId, isEnabled }) => { | 35 | toggleService = ({ serviceId, isEnabled }) => { |
34 | const { updateService } = this.props; | 36 | const { updateService } = this.props; |
35 | 37 | ||
@@ -71,6 +73,7 @@ export default class TabBar extends Component { | |||
71 | setActive={setActive} | 73 | setActive={setActive} |
72 | onSortEnd={this.onSortEnd} | 74 | onSortEnd={this.onSortEnd} |
73 | onSortStart={disableToolTip} | 75 | onSortStart={disableToolTip} |
76 | shouldCancelStart={this.shouldPreventSorting} | ||
74 | reload={reload} | 77 | reload={reload} |
75 | toggleNotifications={toggleNotifications} | 78 | toggleNotifications={toggleNotifications} |
76 | toggleAudio={toggleAudio} | 79 | toggleAudio={toggleAudio} |
diff --git a/src/components/ui/Subscription.js b/src/components/ui/Subscription.js index 80ee2d9d2..8bff72095 100644 --- a/src/components/ui/Subscription.js +++ b/src/components/ui/Subscription.js | |||
@@ -7,7 +7,6 @@ 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'; | ||
11 | 10 | ||
12 | import { required } from '../../helpers/validation-helpers'; | 11 | import { required } from '../../helpers/validation-helpers'; |
13 | 12 | ||
@@ -154,7 +153,7 @@ export default class SubscriptionForm extends Component { | |||
154 | }, | 153 | }, |
155 | }; | 154 | }; |
156 | 155 | ||
157 | if (!isWindows) { | 156 | if (this.props.plan.miner) { |
158 | form.fields.paymentTier.options.push({ | 157 | form.fields.paymentTier.options.push({ |
159 | value: 'mining', | 158 | value: 'mining', |
160 | label: intl.formatMessage(messages.typeMining), | 159 | label: intl.formatMessage(messages.typeMining), |
diff --git a/src/lib/TouchBar.js b/src/lib/TouchBar.js index ad7849b8e..97c02d194 100644 --- a/src/lib/TouchBar.js +++ b/src/lib/TouchBar.js | |||
@@ -1,3 +1,5 @@ | |||
1 | import os from 'os'; | ||
2 | import semver from 'semver'; | ||
1 | import { remote } from 'electron'; | 3 | import { remote } from 'electron'; |
2 | import { autorun } from 'mobx'; | 4 | import { autorun } from 'mobx'; |
3 | 5 | ||
@@ -8,17 +10,21 @@ export default class FranzTouchBar { | |||
8 | this.stores = stores; | 10 | this.stores = stores; |
9 | this.actions = actions; | 11 | this.actions = actions; |
10 | 12 | ||
11 | this._initializeReactions(); | 13 | // Temporary fix for https://github.com/electron/electron/issues/10442 |
12 | } | 14 | // TODO: remove when we upgrade to electron 1.8.2 or later |
13 | 15 | try { | |
14 | _initializeReactions() { | 16 | if (isMac && semver.gt(os.release(), '16.6.0')) { |
15 | this.build = autorun(this._build.bind(this)); | 17 | this.build = autorun(this._build.bind(this)); |
18 | } | ||
19 | } catch (err) { | ||
20 | console.error(err); | ||
21 | } | ||
16 | } | 22 | } |
17 | 23 | ||
18 | _build() { | 24 | _build() { |
19 | const currentWindow = remote.getCurrentWindow(); | 25 | const currentWindow = remote.getCurrentWindow(); |
20 | 26 | ||
21 | if (isMac && this.stores.user.isLoggedIn) { | 27 | if (this.stores.user.isLoggedIn) { |
22 | const { TouchBar } = remote; | 28 | const { TouchBar } = remote; |
23 | const { TouchBarButton, TouchBarSpacer } = TouchBar; | 29 | const { TouchBarButton, TouchBarSpacer } = TouchBar; |
24 | 30 | ||
diff --git a/src/stores/ServicesStore.js b/src/stores/ServicesStore.js index 9af5d81da..22c376c06 100644 --- a/src/stores/ServicesStore.js +++ b/src/stores/ServicesStore.js | |||
@@ -470,8 +470,10 @@ export default class ServicesStore extends Store { | |||
470 | const service = this.active; | 470 | const service = this.active; |
471 | 471 | ||
472 | if (service) { | 472 | if (service) { |
473 | this.stores.settings.updateSettingsRequest.execute({ | 473 | this.actions.settings.update({ |
474 | activeService: service.id, | 474 | settings: { |
475 | activeService: service.id, | ||
476 | }, | ||
475 | }); | 477 | }); |
476 | } | 478 | } |
477 | } | 479 | } |