aboutsummaryrefslogtreecommitdiffstats
path: root/src/lib/Menu.js
diff options
context:
space:
mode:
authorLibravatar Vijay A <avijayr@protonmail.com>2021-07-04 13:37:07 +0530
committerLibravatar Vijay Raghavan Aravamudhan <vraravam@users.noreply.github.com>2021-07-04 15:00:06 +0530
commit435d44afff742a1fdea3ad3c4511cf80892635b1 (patch)
tree11da34f39e090a337d7a840377e812c06ba45719 /src/lib/Menu.js
parentFixed eslint warning (diff)
downloadferdium-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.js7
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';
5import { autorun, observable } from 'mobx'; 5import { autorun, observable } from 'mobx';
6import { defineMessages } from 'react-intl'; 6import { defineMessages } from 'react-intl';
7import { GITHUB_FERDI_URL, LIVE_API_FERDI_WEBSITE } from '../config'; 7import { CUSTOM_WEBSITE_RECIPE_ID, GITHUB_FERDI_URL, LIVE_API_FERDI_WEBSITE } from '../config';
8import { 8import {
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';
12import { announcementActions } from '../features/announcements/actions'; 12import { announcementActions } from '../features/announcements/actions';
13import { todosStore } from '../features/todos'; 13import { todosStore } from '../features/todos';
14import { todoActions } from '../features/todos/actions'; 14import { todoActions } from '../features/todos/actions';
15import { CUSTOM_WEBSITE_ID } from '../features/webControls/constants';
16import { workspaceActions } from '../features/workspaces/actions'; 15import { workspaceActions } from '../features/workspaces/actions';
17import { workspaceStore } from '../features/workspaces/index'; 16import { workspaceStore } from '../features/workspaces/index';
18import * as buildInfo from '../buildInfo.json'; // eslint-disable-line import/no-unresolved 17import * 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 }, {