From 435d44afff742a1fdea3ad3c4511cf80892635b1 Mon Sep 17 00:00:00 2001 From: Vijay A Date: Sun, 4 Jul 2021 13:37:07 +0530 Subject: Fixed issue with not being able to add new service. --- src/lib/Menu.js | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'src/lib/Menu.js') 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 { } from '@electron/remote'; import { autorun, observable } from 'mobx'; import { defineMessages } from 'react-intl'; -import { GITHUB_FERDI_URL, LIVE_API_FERDI_WEBSITE } from '../config'; +import { CUSTOM_WEBSITE_RECIPE_ID, GITHUB_FERDI_URL, LIVE_API_FERDI_WEBSITE } from '../config'; import { cmdKey, ctrlKey, isLinux, isMac, termsBase, } from '../environment'; @@ -12,7 +12,6 @@ import { announcementsStore } from '../features/announcements'; import { announcementActions } from '../features/announcements/actions'; import { todosStore } from '../features/todos'; import { todoActions } from '../features/todos/actions'; -import { CUSTOM_WEBSITE_ID } from '../features/webControls/constants'; import { workspaceActions } from '../features/workspaces/actions'; import { workspaceStore } from '../features/workspaces/index'; import * as buildInfo from '../buildInfo.json'; // eslint-disable-line import/no-unresolved @@ -884,7 +883,7 @@ export default class FranzMenu { click: () => { if (this.stores.user.isLoggedIn && this.stores.services.enabled.length > 0) { - if (this.stores.services.active.recipe.id === CUSTOM_WEBSITE_ID) { + if (this.stores.services.active.recipe.id === CUSTOM_WEBSITE_RECIPE_ID) { this.stores.services.active.webview.reload(); } else { this.actions.service.reloadActive(); @@ -1165,7 +1164,7 @@ export default class FranzMenu { }, }))); - if (services.active && services.active.recipe.id === CUSTOM_WEBSITE_ID) { + if (services.active && services.active.recipe.id === CUSTOM_WEBSITE_RECIPE_ID) { menu.push({ type: 'separator', }, { -- cgit v1.2.3-54-g00ecf