From 0f9bdfeeee34089854c0f21f743e8a89bd4e2e2d Mon Sep 17 00:00:00 2001 From: Kolja Lampe Date: Mon, 27 Jun 2016 09:51:59 +0200 Subject: [PATCH] Added a "Mattermost docs" link to the Help section Closes #177 --- CHANGELOG.md | 1 + docs/setup.md | 1 + src/main/menus/app.js | 7 +++++++ 3 files changed, 9 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 65376a99..5d5e7ad5 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -30,6 +30,7 @@ - Added **Add** button next to the "Teams" label on the Setting page. - Added **Edit** button on the team list on the Setting page. - Added **Help** menu to indicate the application version. +- Added **Mattermost Docs** menu item under **Help** linking to the mattermost docs. - Added auto-reloading when the tab failed to load the team. #### Windows diff --git a/docs/setup.md b/docs/setup.md index 12876a14..721d8cba 100644 --- a/docs/setup.md +++ b/docs/setup.md @@ -158,6 +158,7 @@ Below lists menu options (shortcut keys are listed in brackets, `Ctrl` becomes ` - **Select Next Team** (Ctrl+Tab, Alt+Command+Right) - Open the right tab - **Select Previous Team** (Ctrl+Shift+Tab, Alt+Command+Left) - Open the left tab - **Help** + - ***Mattermost Docs*** Links to the official mattermost documentation - ***Version*** Indicate the application version diff --git a/src/main/menus/app.js b/src/main/menus/app.js index 7a81dd76..cb193137 100644 --- a/src/main/menus/app.js +++ b/src/main/menus/app.js @@ -224,6 +224,13 @@ var createTemplate = function(mainWindow, config) { template.push({ label: '&Help', submenu: [{ + label: `${app_name} Docs`, + click: function() { + electron.shell.openExternal('http://docs.mattermost.com') + } + }, { + type: 'separator' + }, { label: `Version ${electron.app.getVersion()}`, enabled: false }, ]