aboutsummaryrefslogtreecommitdiffstats
path: root/src/lib
diff options
context:
space:
mode:
authorLibravatar Stefan Malzner <stefan@adlk.io>2017-10-30 10:41:14 +0100
committerLibravatar GitHub <noreply@github.com>2017-10-30 10:41:14 +0100
commitf2756edf9f0e672ea6835b12d43a5b9445d222f4 (patch)
tree3c72287bf9b4ce34efde0d8665b793cc3fe53805 /src/lib
parentAdd Linux specific definition for shortcut preview (diff)
parentMerge pull request #150 from meetfranz/feature/menu (diff)
downloadferdium-app-f2756edf9f0e672ea6835b12d43a5b9445d222f4.tar.gz
ferdium-app-f2756edf9f0e672ea6835b12d43a5b9445d222f4.tar.zst
ferdium-app-f2756edf9f0e672ea6835b12d43a5b9445d222f4.zip
Merge branch 'develop' into feature/shortcuts
Diffstat (limited to 'src/lib')
-rw-r--r--src/lib/Menu.js36
1 files changed, 35 insertions, 1 deletions
diff --git a/src/lib/Menu.js b/src/lib/Menu.js
index 3f2c9741b..6bbf302ca 100644
--- a/src/lib/Menu.js
+++ b/src/lib/Menu.js
@@ -3,7 +3,7 @@ import { autorun, computed, observable, toJS } from 'mobx';
3 3
4import { isMac, isLinux } from '../environment'; 4import { isMac, isLinux } from '../environment';
5 5
6const { app, Menu } = remote; 6const { app, Menu, dialog } = remote;
7 7
8const template = [ 8const template = [
9 { 9 {
@@ -84,6 +84,28 @@ const template = [
84 label: 'Learn More', 84 label: 'Learn More',
85 click() { shell.openExternal('http://meetfranz.com'); }, 85 click() { shell.openExternal('http://meetfranz.com'); },
86 }, 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 },
87 ], 109 ],
88 }, 110 },
89]; 111];
@@ -216,6 +238,18 @@ export default class FranzMenu {
216 role: 'front', 238 role: 'front',
217 }, 239 },
218 ]; 240 ];
241 } else {
242 tpl[4].submenu.unshift({
243 role: 'about',
244 click: () => {
245 dialog.showMessageBox({
246 type: 'info',
247 title: 'Franz',
248 message: 'Franz',
249 detail: `Version: ${remote.app.getVersion()}\nRelease: ${process.versions.electron} / ${process.platform} / ${process.arch}`,
250 });
251 },
252 });
219 } 253 }
220 254
221 const serviceTpl = this.serviceTpl; 255 const serviceTpl = this.serviceTpl;