diff options
Diffstat (limited to 'src/lib')
-rw-r--r-- | src/lib/Menu.js | 17 |
1 files changed, 7 insertions, 10 deletions
diff --git a/src/lib/Menu.js b/src/lib/Menu.js index 92013a5dc..6e3f120ba 100644 --- a/src/lib/Menu.js +++ b/src/lib/Menu.js | |||
@@ -4,8 +4,9 @@ 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 { | 8 | import { |
8 | cmdKey, ctrlKey, isLinux, isMac, | 9 | cmdKey, ctrlKey, isLinux, isMac, termsBase, |
9 | } from '../environment'; | 10 | } from '../environment'; |
10 | import { announcementsStore } from '../features/announcements'; | 11 | import { announcementsStore } from '../features/announcements'; |
11 | import { announcementActions } from '../features/announcements/actions'; | 12 | import { announcementActions } from '../features/announcements/actions'; |
@@ -322,10 +323,6 @@ function getActiveWebview() { | |||
322 | return window.ferdi.stores.services.active.webview; | 323 | return window.ferdi.stores.services.active.webview; |
323 | } | 324 | } |
324 | 325 | ||
325 | function termsBase() { | ||
326 | return window.ferdi.stores.settings.all.app.server !== 'https://api.franzinfra.com' ? window.ferdi.stores.settings.all.app.server : 'https://meetfranz.com'; | ||
327 | } | ||
328 | |||
329 | const _templateFactory = (intl, locked) => [ | 326 | const _templateFactory = (intl, locked) => [ |
330 | { | 327 | { |
331 | label: intl.formatMessage(menuItems.edit), | 328 | label: intl.formatMessage(menuItems.edit), |
@@ -521,7 +518,7 @@ const _templateFactory = (intl, locked) => [ | |||
521 | submenu: [ | 518 | submenu: [ |
522 | { | 519 | { |
523 | label: intl.formatMessage(menuItems.learnMore), | 520 | label: intl.formatMessage(menuItems.learnMore), |
524 | click() { shell.openExternal('https://getferdi.com'); }, | 521 | click() { shell.openExternal(LIVE_API_FERDI_WEBSITE); }, |
525 | }, | 522 | }, |
526 | { | 523 | { |
527 | label: intl.formatMessage(menuItems.announcement), | 524 | label: intl.formatMessage(menuItems.announcement), |
@@ -535,7 +532,7 @@ const _templateFactory = (intl, locked) => [ | |||
535 | }, | 532 | }, |
536 | { | 533 | { |
537 | label: intl.formatMessage(menuItems.support), | 534 | label: intl.formatMessage(menuItems.support), |
538 | click() { shell.openExternal('https://getferdi.com/contact'); }, | 535 | click() { shell.openExternal(`${LIVE_API_FERDI_WEBSITE}/contact`); }, |
539 | }, | 536 | }, |
540 | { | 537 | { |
541 | type: 'separator', | 538 | type: 'separator', |
@@ -787,18 +784,18 @@ const _titleBarTemplateFactory = (intl, locked) => [ | |||
787 | submenu: [ | 784 | submenu: [ |
788 | { | 785 | { |
789 | label: intl.formatMessage(menuItems.learnMore), | 786 | label: intl.formatMessage(menuItems.learnMore), |
790 | click() { shell.openExternal('https://getferdi.com'); }, | 787 | click() { shell.openExternal(LIVE_API_FERDI_WEBSITE); }, |
791 | }, | 788 | }, |
792 | { | 789 | { |
793 | label: intl.formatMessage(menuItems.changelog), | 790 | label: intl.formatMessage(menuItems.changelog), |
794 | click() { shell.openExternal('https://github.com/getferdi/ferdi/blob/master/CHANGELOG.md'); }, | 791 | click() { shell.openExternal(`${GITHUB_FERDI_URL}/ferdi/blob/master/CHANGELOG.md`); }, |
795 | }, | 792 | }, |
796 | { | 793 | { |
797 | type: 'separator', | 794 | type: 'separator', |
798 | }, | 795 | }, |
799 | { | 796 | { |
800 | label: intl.formatMessage(menuItems.support), | 797 | label: intl.formatMessage(menuItems.support), |
801 | click() { shell.openExternal('https://getferdi.com/contact'); }, | 798 | click() { shell.openExternal(`${LIVE_API_FERDI_WEBSITE}/contact`); }, |
802 | }, | 799 | }, |
803 | { | 800 | { |
804 | type: 'separator', | 801 | type: 'separator', |