diff options
author | 2020-04-29 19:18:38 +0530 | |
---|---|---|
committer | 2020-04-29 13:48:38 +0000 | |
commit | a9327a5bdc85e748270430651d3dd27c96edc573 (patch) | |
tree | 1db7947fc7cbf59c396018095907cb1977529315 /src/components/layout | |
parent | Create issue_label_bot.yaml (#672) (diff) | |
download | ferdium-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/components/layout')
-rw-r--r-- | src/components/layout/Sidebar.js | 7 |
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'; | |||
6 | import { Link } from 'react-router'; | 6 | import { Link } from 'react-router'; |
7 | 7 | ||
8 | import Tabbar from '../services/tabs/Tabbar'; | 8 | import Tabbar from '../services/tabs/Tabbar'; |
9 | import { ctrlKey } from '../../environment'; | 9 | import { ctrlKey, isMac } from '../../environment'; |
10 | import { workspaceStore } from '../../features/workspaces'; | 10 | import { workspaceStore } from '../../features/workspaces'; |
11 | import { todosStore } from '../../features/todos'; | 11 | import { todosStore } from '../../features/todos'; |
12 | import { todoActions } from '../../features/todos/actions'; | 12 | import { todoActions } from '../../features/todos/actions'; |
13 | 13 | ||
14 | // Platform specific shortcut keys | ||
15 | const settingsShortcutKey = isMac ? ',' : 'P'; | ||
16 | |||
14 | const messages = defineMessages({ | 17 | const 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 |