diff options
author | Vijay A <avijayr@protonmail.com> | 2021-07-04 13:37:07 +0530 |
---|---|---|
committer | Vijay Raghavan Aravamudhan <vraravam@users.noreply.github.com> | 2021-07-04 15:00:06 +0530 |
commit | 435d44afff742a1fdea3ad3c4511cf80892635b1 (patch) | |
tree | 11da34f39e090a337d7a840377e812c06ba45719 /src/lib/Menu.js | |
parent | Fixed eslint warning (diff) | |
download | ferdium-app-435d44afff742a1fdea3ad3c4511cf80892635b1.tar.gz ferdium-app-435d44afff742a1fdea3ad3c4511cf80892635b1.tar.zst ferdium-app-435d44afff742a1fdea3ad3c4511cf80892635b1.zip |
Fixed issue with not being able to add new service.
Diffstat (limited to 'src/lib/Menu.js')
-rw-r--r-- | src/lib/Menu.js | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/src/lib/Menu.js b/src/lib/Menu.js index 8118b4e26..d66fa009f 100644 --- a/src/lib/Menu.js +++ b/src/lib/Menu.js | |||
@@ -4,7 +4,7 @@ import { | |||
4 | } from '@electron/remote'; | 4 | } from '@electron/remote'; |
5 | import { autorun, observable } from 'mobx'; | 5 | import { autorun, observable } from 'mobx'; |
6 | import { defineMessages } from 'react-intl'; | 6 | import { defineMessages } from 'react-intl'; |
7 | import { GITHUB_FERDI_URL, LIVE_API_FERDI_WEBSITE } from '../config'; | 7 | import { CUSTOM_WEBSITE_RECIPE_ID, GITHUB_FERDI_URL, LIVE_API_FERDI_WEBSITE } from '../config'; |
8 | import { | 8 | import { |
9 | cmdKey, ctrlKey, isLinux, isMac, termsBase, | 9 | cmdKey, ctrlKey, isLinux, isMac, termsBase, |
10 | } from '../environment'; | 10 | } from '../environment'; |
@@ -12,7 +12,6 @@ import { announcementsStore } from '../features/announcements'; | |||
12 | import { announcementActions } from '../features/announcements/actions'; | 12 | import { announcementActions } from '../features/announcements/actions'; |
13 | import { todosStore } from '../features/todos'; | 13 | import { todosStore } from '../features/todos'; |
14 | import { todoActions } from '../features/todos/actions'; | 14 | import { todoActions } from '../features/todos/actions'; |
15 | import { CUSTOM_WEBSITE_ID } from '../features/webControls/constants'; | ||
16 | import { workspaceActions } from '../features/workspaces/actions'; | 15 | import { workspaceActions } from '../features/workspaces/actions'; |
17 | import { workspaceStore } from '../features/workspaces/index'; | 16 | import { workspaceStore } from '../features/workspaces/index'; |
18 | import * as buildInfo from '../buildInfo.json'; // eslint-disable-line import/no-unresolved | 17 | import * as buildInfo from '../buildInfo.json'; // eslint-disable-line import/no-unresolved |
@@ -884,7 +883,7 @@ export default class FranzMenu { | |||
884 | click: () => { | 883 | click: () => { |
885 | if (this.stores.user.isLoggedIn | 884 | if (this.stores.user.isLoggedIn |
886 | && this.stores.services.enabled.length > 0) { | 885 | && this.stores.services.enabled.length > 0) { |
887 | if (this.stores.services.active.recipe.id === CUSTOM_WEBSITE_ID) { | 886 | if (this.stores.services.active.recipe.id === CUSTOM_WEBSITE_RECIPE_ID) { |
888 | this.stores.services.active.webview.reload(); | 887 | this.stores.services.active.webview.reload(); |
889 | } else { | 888 | } else { |
890 | this.actions.service.reloadActive(); | 889 | this.actions.service.reloadActive(); |
@@ -1165,7 +1164,7 @@ export default class FranzMenu { | |||
1165 | }, | 1164 | }, |
1166 | }))); | 1165 | }))); |
1167 | 1166 | ||
1168 | if (services.active && services.active.recipe.id === CUSTOM_WEBSITE_ID) { | 1167 | if (services.active && services.active.recipe.id === CUSTOM_WEBSITE_RECIPE_ID) { |
1169 | menu.push({ | 1168 | menu.push({ |
1170 | type: 'separator', | 1169 | type: 'separator', |
1171 | }, { | 1170 | }, { |