diff --git a/package.json b/package.json index c5028014..90022e92 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "mattermost-desktop", "productName": "Mattermost", - "version": "3.5.0", + "version": "3.6.0", "description": "Mattermost", "main": "main.js", "author": { diff --git a/src/browser/components/MattermostView.jsx b/src/browser/components/MattermostView.jsx index c23d274b..34d5b1cd 100644 --- a/src/browser/components/MattermostView.jsx +++ b/src/browser/components/MattermostView.jsx @@ -72,7 +72,7 @@ const MattermostView = React.createClass({ } if (currentURL.host === destURL.host) { // New window should disable nodeIntergration. - window.open(e.url, 'Mattermost', 'nodeIntegration=no'); + window.open(e.url, 'Mattermost', 'nodeIntegration=no, show=yes'); } else { // if the link is external, use default browser. shell.openExternal(e.url); diff --git a/src/browser/components/SettingsPage.jsx b/src/browser/components/SettingsPage.jsx index 83a0e4b1..40ec8b3e 100644 --- a/src/browser/components/SettingsPage.jsx +++ b/src/browser/components/SettingsPage.jsx @@ -58,6 +58,9 @@ const SettingsPage = React.createClass({ showAddTeamForm: true }); }); + ipcRenderer.on('switch-tab', (event, key) => { + backToIndex(key); + }); }, setSavingState(state) { @@ -284,6 +287,7 @@ const SettingsPage = React.createClass({ ); if (process.platform === 'darwin' || process.platform === 'win32') { + const TASKBAR = process.platform === 'win32' ? 'taskbar' : 'Dock'; options.push( {'Show red badge on taskbar icon to indicate unread messages'} + >{`Show red badge on ${TASKBAR} icon to indicate unread messages`} - {'Regardless of this setting, mentions are always indicated with a red badge and item count on the taskbar icon.'} + {`Regardless of this setting, mentions are always indicated with a red badge and item count on the ${TASKBAR} icon.`} ); } @@ -306,9 +310,9 @@ const SettingsPage = React.createClass({ ref='flashWindow' checked={this.state.notifications.flashWindow === 2} onChange={this.handleFlashWindow} - >{'Flash taskbar icon when a new message is received'} + >{'Flash app window and taskbar icon when a new message is received'} - {'If enabled, taskbar icon flashes for a few seconds when a new message is received.'} + {'If enabled, app window and taskbar icon flash for a few seconds when a new message is received.'} ); } diff --git a/src/package.json b/src/package.json index 226fb297..2bc2a992 100644 --- a/src/package.json +++ b/src/package.json @@ -2,7 +2,7 @@ "name": "mattermost-desktop", "productName": "Mattermost", "desktopName": "Mattermost.desktop", - "version": "3.5.0", + "version": "3.6.0", "description": "Mattermost", "main": "main.js", "author": { diff --git a/test/specs/browser/settings_test.js b/test/specs/browser/settings_test.js index 19953ec6..282789ff 100644 --- a/test/specs/browser/settings_test.js +++ b/test/specs/browser/settings_test.js @@ -202,7 +202,7 @@ describe('browser/settings.html', function desc() { }); }); - describe('Flash taskbar icon when a new message is received', () => { + describe('Flash app window and taskbar icon when a new message is received', () => { it('should appear on win32 and linux', () => { const expected = (process.platform === 'win32' || process.platform === 'linux'); env.addClientCommands(this.app.client);