aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorLibravatar Sampath Kumar Krishnan <sampathBlam@users.noreply.github.com>2020-04-29 19:18:38 +0530
committerLibravatar GitHub <noreply@github.com>2020-04-29 13:48:38 +0000
commita9327a5bdc85e748270430651d3dd27c96edc573 (patch)
tree1db7947fc7cbf59c396018095907cb1977529315 /src
parentCreate issue_label_bot.yaml (#672) (diff)
downloadferdium-app-a9327a5bdc85e748270430651d3dd27c96edc573.tar.gz
ferdium-app-a9327a5bdc85e748270430651d3dd27c96edc573.tar.zst
ferdium-app-a9327a5bdc85e748270430651d3dd27c96edc573.zip
Change Keyboard shortcut tooltip text in Sidebar for Settings (#665)
Diffstat (limited to 'src')
-rw-r--r--src/components/layout/Sidebar.js7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/components/layout/Sidebar.js b/src/components/layout/Sidebar.js
index bd10ccb4a..90bbe86e9 100644
--- a/src/components/layout/Sidebar.js
+++ b/src/components/layout/Sidebar.js
@@ -6,11 +6,14 @@ import { inject, observer } from 'mobx-react';
6import { Link } from 'react-router'; 6import { Link } from 'react-router';
7 7
8import Tabbar from '../services/tabs/Tabbar'; 8import Tabbar from '../services/tabs/Tabbar';
9import { ctrlKey } from '../../environment'; 9import { ctrlKey, isMac } from '../../environment';
10import { workspaceStore } from '../../features/workspaces'; 10import { workspaceStore } from '../../features/workspaces';
11import { todosStore } from '../../features/todos'; 11import { todosStore } from '../../features/todos';
12import { todoActions } from '../../features/todos/actions'; 12import { todoActions } from '../../features/todos/actions';
13 13
14// Platform specific shortcut keys
15const settingsShortcutKey = isMac ? ',' : 'P';
16
14const messages = defineMessages({ 17const messages = defineMessages({
15 settings: { 18 settings: {
16 id: 'sidebar.settings', 19 id: 'sidebar.settings',
@@ -189,7 +192,7 @@ export default @inject('stores', 'actions') @observer class Sidebar extends Comp
189 type="button" 192 type="button"
190 onClick={() => openSettings({ path: 'app' })} 193 onClick={() => openSettings({ path: 'app' })}
191 className="sidebar__button sidebar__button--settings" 194 className="sidebar__button sidebar__button--settings"
192 data-tip={`${intl.formatMessage(messages.settings)} (${ctrlKey}+,)`} 195 data-tip={`${intl.formatMessage(messages.settings)} (${ctrlKey}+${settingsShortcutKey})`}
193 > 196 >
194 <i className="mdi mdi-settings" /> 197 <i className="mdi mdi-settings" />
195 { (this.props.stores.app.updateStatus === this.props.stores.app.updateStatusTypes.AVAILABLE 198 { (this.props.stores.app.updateStatus === this.props.stores.app.updateStatusTypes.AVAILABLE