diff options
author | 2022-07-19 12:52:31 +0100 | |
---|---|---|
committer | 2022-07-19 12:52:31 +0100 | |
commit | 3bb1ca7825a0381ddd8dbe7f44f7dcf4a788b165 (patch) | |
tree | 6b414b9ef3be7656da1717b0d6def62e95d1fb90 /src/lib/Menu.js | |
parent | fix: remove autoHibernate (diff) | |
download | ferdium-app-3bb1ca7825a0381ddd8dbe7f44f7dcf4a788b165.tar.gz ferdium-app-3bb1ca7825a0381ddd8dbe7f44f7dcf4a788b165.tar.zst ferdium-app-3bb1ca7825a0381ddd8dbe7f44f7dcf4a788b165.zip |
Feature: Add Release Notes (#491)
Co-authored-by: Vijay A <vraravam@users.noreply.github.com>
Co-authored-by: Ricardo Cino <ricardo@cino.io>
Diffstat (limited to 'src/lib/Menu.js')
-rw-r--r-- | src/lib/Menu.js | 12 |
1 files changed, 3 insertions, 9 deletions
diff --git a/src/lib/Menu.js b/src/lib/Menu.js index 8fd3e9e01..41b4aa9f7 100644 --- a/src/lib/Menu.js +++ b/src/lib/Menu.js | |||
@@ -32,11 +32,7 @@ import { | |||
32 | nodeVersion, | 32 | nodeVersion, |
33 | osArch, | 33 | osArch, |
34 | } from '../environment'; | 34 | } from '../environment'; |
35 | import { | 35 | import { CUSTOM_WEBSITE_RECIPE_ID, LIVE_API_FERDIUM_WEBSITE } from '../config'; |
36 | CUSTOM_WEBSITE_RECIPE_ID, | ||
37 | GITHUB_FERDIUM_URL, | ||
38 | LIVE_API_FERDIUM_WEBSITE, | ||
39 | } from '../config'; | ||
40 | import { ferdiumVersion } from '../environment-remote'; | 36 | import { ferdiumVersion } from '../environment-remote'; |
41 | import { todoActions } from '../features/todos/actions'; | 37 | import { todoActions } from '../features/todos/actions'; |
42 | import workspaceActions from '../features/workspaces/actions'; | 38 | import workspaceActions from '../features/workspaces/actions'; |
@@ -44,6 +40,7 @@ import { workspaceStore } from '../features/workspaces/index'; | |||
44 | import { importExportURL, serverBase, serverName } from '../api/apiBase'; | 40 | import { importExportURL, serverBase, serverName } from '../api/apiBase'; |
45 | import { openExternalUrl } from '../helpers/url-helpers'; | 41 | import { openExternalUrl } from '../helpers/url-helpers'; |
46 | import globalMessages from '../i18n/globalMessages'; | 42 | import globalMessages from '../i18n/globalMessages'; |
43 | import { onAuthGoToReleaseNotes } from '../helpers/update-helpers'; | ||
47 | 44 | ||
48 | // @ts-expect-error Cannot find module '../buildInfo.json' or its corresponding type declarations. | 45 | // @ts-expect-error Cannot find module '../buildInfo.json' or its corresponding type declarations. |
49 | import * as buildInfo from '../buildInfo.json'; | 46 | import * as buildInfo from '../buildInfo.json'; |
@@ -586,10 +583,7 @@ const _titleBarTemplateFactory = (intl, locked) => [ | |||
586 | { | 583 | { |
587 | label: intl.formatMessage(menuItems.changelog), | 584 | label: intl.formatMessage(menuItems.changelog), |
588 | click() { | 585 | click() { |
589 | openExternalUrl( | 586 | window.location.href = onAuthGoToReleaseNotes(window.location.href); |
590 | `${GITHUB_FERDIUM_URL}/ferdium-app/releases/tag/v${ferdiumVersion}`, | ||
591 | true, | ||
592 | ); | ||
593 | }, | 587 | }, |
594 | }, | 588 | }, |
595 | { | 589 | { |