Fix default text for channel switcher (#6581)
Этот коммит содержится в:
коммит произвёл
GitHub
родитель
f2151be096
Коммит
876c5dc9df
@@ -199,13 +199,17 @@ export default class QuickSwitchModal extends React.PureComponent {
|
|||||||
let renderDividers = true;
|
let renderDividers = true;
|
||||||
|
|
||||||
let channelShortcut = 'quick_switch_modal.channelsShortcut.windows';
|
let channelShortcut = 'quick_switch_modal.channelsShortcut.windows';
|
||||||
|
let defaultChannelShortcut = 'CTRL+K';
|
||||||
if (Utils.isMac()) {
|
if (Utils.isMac()) {
|
||||||
channelShortcut = 'quick_switch_modal.channelsShortcut.mac';
|
channelShortcut = 'quick_switch_modal.channelsShortcut.mac';
|
||||||
|
defaultChannelShortcut = 'CMD+K';
|
||||||
}
|
}
|
||||||
|
|
||||||
let teamShortcut = 'quick_switch_modal.teamsShortcut.windows';
|
let teamShortcut = 'quick_switch_modal.teamsShortcut.windows';
|
||||||
|
let defaultTeamShortcut = 'CTRL+ALT+K';
|
||||||
if (Utils.isMac()) {
|
if (Utils.isMac()) {
|
||||||
teamShortcut = 'quick_switch_modal.teamsShortcut.mac';
|
teamShortcut = 'quick_switch_modal.teamsShortcut.mac';
|
||||||
|
defaultTeamShortcut = 'CMD+ALT+K';
|
||||||
}
|
}
|
||||||
|
|
||||||
if (this.props.showTeamSwitcher) {
|
if (this.props.showTeamSwitcher) {
|
||||||
@@ -238,7 +242,7 @@ export default class QuickSwitchModal extends React.PureComponent {
|
|||||||
<span className='small'>
|
<span className='small'>
|
||||||
<FormattedMessage
|
<FormattedMessage
|
||||||
id={channelShortcut}
|
id={channelShortcut}
|
||||||
defaultMessage='CTRL+K'
|
defaultMessage={defaultChannelShortcut}
|
||||||
/>
|
/>
|
||||||
</span>
|
</span>
|
||||||
</a>
|
</a>
|
||||||
@@ -260,7 +264,7 @@ export default class QuickSwitchModal extends React.PureComponent {
|
|||||||
<span className='small'>
|
<span className='small'>
|
||||||
<FormattedMessage
|
<FormattedMessage
|
||||||
id={teamShortcut}
|
id={teamShortcut}
|
||||||
defaultMessage='CTRL+ALT+K'
|
defaultMessage={defaultTeamShortcut}
|
||||||
/>
|
/>
|
||||||
</span>
|
</span>
|
||||||
</a>
|
</a>
|
||||||
|
|||||||
@@ -804,8 +804,10 @@ export default class Sidebar extends React.Component {
|
|||||||
}
|
}
|
||||||
|
|
||||||
let quickSwitchText = 'sidebar.switch_channels';
|
let quickSwitchText = 'sidebar.switch_channels';
|
||||||
|
let quickSwitchDefault = 'Switch Channels (CTRL + K)';
|
||||||
if (Utils.isMac()) {
|
if (Utils.isMac()) {
|
||||||
quickSwitchText += '.mac';
|
quickSwitchText += '.mac';
|
||||||
|
quickSwitchDefault = 'Switch Channels (CMD + K)';
|
||||||
}
|
}
|
||||||
|
|
||||||
return (
|
return (
|
||||||
@@ -916,7 +918,7 @@ export default class Sidebar extends React.Component {
|
|||||||
>
|
>
|
||||||
<FormattedMessage
|
<FormattedMessage
|
||||||
id={quickSwitchText}
|
id={quickSwitchText}
|
||||||
defaultMessage='Switch Channels (CTRL + K)'
|
defaultMessage={quickSwitchDefault}
|
||||||
/>
|
/>
|
||||||
</a>
|
</a>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
Ссылка в новой задаче
Block a user