diff options
Diffstat (limited to 'src')
-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', |