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