diff options
Diffstat (limited to 'src/lib/Menu.js')
-rw-r--r-- | src/lib/Menu.js | 11 |
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'; | |||
14 | import { todoActions } from '../features/todos/actions'; | 14 | import { todoActions } from '../features/todos/actions'; |
15 | import { workspaceActions } from '../features/workspaces/actions'; | 15 | import { workspaceActions } from '../features/workspaces/actions'; |
16 | import { workspaceStore } from '../features/workspaces/index'; | 16 | import { workspaceStore } from '../features/workspaces/index'; |
17 | import { termsBase } from '../api/apiBase'; | 17 | import apiBase, { termsBase } from '../api/apiBase'; |
18 | 18 | ||
19 | const menuItems = defineMessages({ | 19 | const 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 | { |