[PLT-3377] Open up a shortcuts dialog instead of printing help text (#7064)
* open up a shortcuts dialog instead of printing help text * Updating UI for keyboard shortcuts modal * update PR per PLT-7284 * fix typo error * fix mixed up shortcut keys * move to client side * fix shortcuts list, remove unused function and revert server side code for autocompletion * remove quick team switcher
Этот коммит содержится в:
коммит произвёл
GitHub
родитель
96eab12027
Коммит
9097289c2c
@@ -466,20 +466,8 @@ export default class CreatePost extends React.Component {
|
||||
showShortcuts(e) {
|
||||
if ((e.ctrlKey || e.metaKey) && e.keyCode === Constants.KeyCodes.FORWARD_SLASH) {
|
||||
e.preventDefault();
|
||||
const args = {};
|
||||
args.channel_id = this.state.channelId;
|
||||
args.team_id = TeamStore.getCurrentId();
|
||||
ChannelActions.executeCommand(
|
||||
'/shortcuts',
|
||||
args,
|
||||
null,
|
||||
(err) => {
|
||||
this.setState({
|
||||
serverError: err.message,
|
||||
submitting: false
|
||||
});
|
||||
}
|
||||
);
|
||||
|
||||
GlobalActions.showShortcutsModal();
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Ссылка в новой задаче
Block a user