diff options
author | 2017-10-27 15:09:56 +0200 | |
---|---|---|
committer | 2017-10-27 15:09:56 +0200 | |
commit | 8281c43ac30ad420899524a8a78ec4d34b08e8f4 (patch) | |
tree | 2f30fbc70b9a07add8a832c00e2876efe02b1767 /src/lib | |
parent | feat(Menu): Add "About Franz" Menu item to Windows/Linux (diff) | |
download | ferdium-app-8281c43ac30ad420899524a8a78ec4d34b08e8f4.tar.gz ferdium-app-8281c43ac30ad420899524a8a78ec4d34b08e8f4.tar.zst ferdium-app-8281c43ac30ad420899524a8a78ec4d34b08e8f4.zip |
Add info & support links to "Help" menu
Diffstat (limited to 'src/lib')
-rw-r--r-- | src/lib/Menu.js | 46 |
1 files changed, 33 insertions, 13 deletions
diff --git a/src/lib/Menu.js b/src/lib/Menu.js index d828f8e1a..c29cd00ae 100644 --- a/src/lib/Menu.js +++ b/src/lib/Menu.js | |||
@@ -1,9 +1,8 @@ | |||
1 | import { remote, shell } from 'electron'; | 1 | import { remote, shell } from 'electron'; |
2 | import { autorun, computed, observable, toJS } from 'mobx'; | 2 | import { autorun, computed, observable, toJS } from 'mobx'; |
3 | 3 | ||
4 | import { isDevMode, isMac } from '../environment'; | 4 | import { isMac } from '../environment'; |
5 | 5 | ||
6 | const { app, Menu } = remote; | ||
7 | const { app, Menu, dialog } = remote; | 6 | const { app, Menu, dialog } = remote; |
8 | 7 | ||
9 | const template = [ | 8 | const template = [ |
@@ -85,6 +84,28 @@ const template = [ | |||
85 | label: 'Learn More', | 84 | label: 'Learn More', |
86 | click() { shell.openExternal('http://meetfranz.com'); }, | 85 | click() { shell.openExternal('http://meetfranz.com'); }, |
87 | }, | 86 | }, |
87 | { | ||
88 | label: 'Changelog', | ||
89 | click() { shell.openExternal('https://github.com/meetfranz/franz/blob/master/CHANGELOG.md'); }, | ||
90 | }, | ||
91 | { | ||
92 | type: 'separator', | ||
93 | }, | ||
94 | { | ||
95 | label: 'Support', | ||
96 | click() { shell.openExternal('http://meetfranz.com/support'); }, | ||
97 | }, | ||
98 | { | ||
99 | type: 'separator', | ||
100 | }, | ||
101 | { | ||
102 | label: 'Terms of Service', | ||
103 | click() { shell.openExternal('https://meetfranz.com/terms'); }, | ||
104 | }, | ||
105 | { | ||
106 | label: 'Privacy Statement', | ||
107 | click() { shell.openExternal('https://meetfranz.com/privacy'); }, | ||
108 | }, | ||
88 | ], | 109 | ], |
89 | }, | 110 | }, |
90 | ]; | 111 | ]; |
@@ -102,17 +123,16 @@ export default class FranzMenu { | |||
102 | _build() { | 123 | _build() { |
103 | const tpl = toJS(this.tpl); | 124 | const tpl = toJS(this.tpl); |
104 | 125 | ||
105 | if (isDevMode) { | 126 | tpl[1].submenu.push({ |
106 | tpl[1].submenu.push({ | 127 | role: 'toggledevtools', |
107 | role: 'toggledevtools', | 128 | }, { |
108 | }, { | 129 | label: 'Toggle Service Developer Tools', |
109 | label: 'Toggle Service Developer Tools', | 130 | accelerator: 'CmdOrCtrl+Shift+Alt+i', |
110 | accelerator: 'CmdOrCtrl+Shift+Alt+i', | 131 | click: () => { |
111 | click: () => { | 132 | this.actions.service.openDevToolsForActiveService(); |
112 | this.actions.service.openDevToolsForActiveService(); | 133 | }, |
113 | }, | 134 | }); |
114 | }); | 135 | |
115 | } | ||
116 | 136 | ||
117 | tpl[1].submenu.unshift({ | 137 | tpl[1].submenu.unshift({ |
118 | label: 'Reload Service', | 138 | label: 'Reload Service', |