aboutsummaryrefslogtreecommitdiffstats
path: root/src/lib/Menu.js
diff options
context:
space:
mode:
authorLibravatar Vijay A <avijayr@protonmail.com>2021-08-09 21:31:46 +0530
committerLibravatar Vijay Raghavan Aravamudhan <vraravam@users.noreply.github.com>2021-08-09 16:21:54 +0000
commit8b2d3db622d1087d0e2e6dee4f1ee202bd6bd767 (patch)
tree349cfc6c80559767845af61ef1b19e7191199053 /src/lib/Menu.js
parentchore: upgraded 'electron-builder' to '22.12.0' (diff)
downloadferdium-app-8b2d3db622d1087d0e2e6dee4f1ee202bd6bd767.tar.gz
ferdium-app-8b2d3db622d1087d0e2e6dee4f1ee202bd6bd767.tar.zst
ferdium-app-8b2d3db622d1087d0e2e6dee4f1ee202bd6bd767.zip
feat: added new Help menu item to allow easy import/export of config data
Diffstat (limited to 'src/lib/Menu.js')
-rw-r--r--src/lib/Menu.js11
1 files changed, 10 insertions, 1 deletions
diff --git a/src/lib/Menu.js b/src/lib/Menu.js
index e26c50e1e..db592b478 100644
--- a/src/lib/Menu.js
+++ b/src/lib/Menu.js
@@ -14,7 +14,7 @@ import { todosStore } from '../features/todos';
14import { todoActions } from '../features/todos/actions'; 14import { todoActions } from '../features/todos/actions';
15import { workspaceActions } from '../features/workspaces/actions'; 15import { workspaceActions } from '../features/workspaces/actions';
16import { workspaceStore } from '../features/workspaces/index'; 16import { workspaceStore } from '../features/workspaces/index';
17import { termsBase } from '../api/apiBase'; 17import apiBase, { termsBase } from '../api/apiBase';
18 18
19const menuItems = defineMessages({ 19const menuItems = defineMessages({
20 edit: { 20 edit: {
@@ -153,6 +153,10 @@ const menuItems = defineMessages({
153 id: 'menu.help.changelog', 153 id: 'menu.help.changelog',
154 defaultMessage: '!!!Changelog', 154 defaultMessage: '!!!Changelog',
155 }, 155 },
156 importExportData: {
157 id: 'menu.help.importExportData',
158 defaultMessage: '!!!Import/Export Configuration Data',
159 },
156 support: { 160 support: {
157 id: 'menu.help.support', 161 id: 'menu.help.support',
158 defaultMessage: '!!!Support', 162 defaultMessage: '!!!Support',
@@ -517,6 +521,11 @@ const _titleBarTemplateFactory = (intl, locked) => [
517 click() { shell.openExternal(`${GITHUB_FERDI_URL}/ferdi/blob/master/CHANGELOG.md`); }, 521 click() { shell.openExternal(`${GITHUB_FERDI_URL}/ferdi/blob/master/CHANGELOG.md`); },
518 }, 522 },
519 { 523 {
524 label: intl.formatMessage(menuItems.importExportData),
525 click() { shell.openExternal(apiBase(false)); },
526 enabled: !locked,
527 },
528 {
520 type: 'separator', 529 type: 'separator',
521 }, 530 },
522 { 531 {