Skip to content

Commit

Permalink
UIU-3026: Remove duplicates from the keyboard shortcut modal
Browse files Browse the repository at this point in the history
  • Loading branch information
UladzislauKutarkin committed Dec 24, 2024
1 parent d86ca50 commit 79b485f
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 2 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
* `useUserTenantRoles` supplies `tenantId` in all its queries. Refs UIU-3279.
* Leverage API supported sorting of columns on pre-registrations records list. Refs UIU-3249.
* Fix issue with `Proxy borrower` field value. Refs UIU-3290.
* Remove duplicates from the keyboard shortcut modal. Refs UIU-3026.

## [11.0.9](https://github.com/folio-org/ui-users/tree/v11.0.9) (2024-12-13)
[Full Changelog](https://github.com/folio-org/ui-users/compare/v11.0.8...v11.0.9)
Expand Down
4 changes: 4 additions & 0 deletions src/commands.js
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,10 @@ const commands = [
name: 'openShortcutModal',
label: (<FormattedMessage id="ui-users.shortcut.openShortcutModal" />),
shortcut: 'mod+alt+k',
},
{
label: (<FormattedMessage id="ui-users.shortcut.expandCollapse" />),
shortcut: 'spacebar'
}
];

Expand Down
3 changes: 1 addition & 2 deletions src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@ import * as Routes from './routes';

import pkg from '../package';
import commands from './commands';
import commandsGeneral from './commandsGeneral';
import Settings from './settings';
import sections from './settings/sections';
import {
Expand Down Expand Up @@ -241,7 +240,7 @@ class UsersRouting extends React.Component {
<KeyboardShortcutsModal
open
onClose={() => { this.changeKeyboardShortcutsModal(false); }}
allCommands={commands.concat(commandsGeneral)}
allCommands={commands}
/>
)}
</ >
Expand Down

0 comments on commit 79b485f

Please sign in to comment.