Open help link from config
This commit is contained in:
@@ -10,7 +10,8 @@
|
|||||||
},
|
},
|
||||||
"showUnreadBadge": true,
|
"showUnreadBadge": true,
|
||||||
"useSpellChecker": true,
|
"useSpellChecker": true,
|
||||||
"spellCheckerLocale": "en-US"
|
"spellCheckerLocale": "en-US",
|
||||||
|
"helpLink": "https://docs.mattermost.com/help/apps/desktop-guide.html"
|
||||||
},
|
},
|
||||||
"1": {
|
"1": {
|
||||||
"teams": [],
|
"teams": [],
|
||||||
@@ -23,6 +24,7 @@
|
|||||||
},
|
},
|
||||||
"showUnreadBadge": true,
|
"showUnreadBadge": true,
|
||||||
"useSpellChecker": true,
|
"useSpellChecker": true,
|
||||||
"spellCheckerLocale": "en-US"
|
"spellCheckerLocale": "en-US",
|
||||||
|
"helpLink": "https://docs.mattermost.com/help/apps/desktop-guide.html"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@@ -1,6 +1,7 @@
|
|||||||
'use strict';
|
'use strict';
|
||||||
|
|
||||||
const electron = require('electron');
|
const electron = require('electron');
|
||||||
|
|
||||||
const Menu = electron.Menu;
|
const Menu = electron.Menu;
|
||||||
|
|
||||||
function createTemplate(mainWindow, config, isDev) {
|
function createTemplate(mainWindow, config, isDev) {
|
||||||
@@ -207,7 +208,7 @@ function createTemplate(mainWindow, config, isDev) {
|
|||||||
submenu: [{
|
submenu: [{
|
||||||
label: 'Learn More...',
|
label: 'Learn More...',
|
||||||
click() {
|
click() {
|
||||||
electron.shell.openExternal('https://docs.mattermost.com/help/apps/desktop-guide.html');
|
electron.shell.openExternal(config.helpLink);
|
||||||
}
|
}
|
||||||
}, {
|
}, {
|
||||||
type: 'separator'
|
type: 'separator'
|
||||||
|
Reference in New Issue
Block a user