mirror of
https://github.com/wekan/wekan.git
synced 2026-01-30 21:25:17 +01:00
Merge pull request #5318 from DevOpsNB/main
Add shortcut to filter by assignees
This commit is contained in:
commit
84fe3c2f40
2 changed files with 13 additions and 0 deletions
|
|
@ -33,6 +33,14 @@ Mousetrap.bind('q', () => {
|
|||
}
|
||||
});
|
||||
|
||||
Mousetrap.bind('a', () => {
|
||||
const currentBoardId = Session.get('currentBoard');
|
||||
const currentUserId = Meteor.userId();
|
||||
if (currentBoardId && currentUserId) {
|
||||
Filter.assignees.toggle(currentUserId);
|
||||
}
|
||||
});
|
||||
|
||||
Mousetrap.bind('x', () => {
|
||||
if (Filter.isActive()) {
|
||||
Filter.reset();
|
||||
|
|
@ -181,6 +189,10 @@ Template.keyboardShortcuts.helpers({
|
|||
keys: ['q'],
|
||||
action: 'shortcut-filter-my-cards',
|
||||
},
|
||||
{
|
||||
keys: ['a'],
|
||||
action: 'shortcut-filter-my-assigned-cards',
|
||||
},
|
||||
{
|
||||
keys: ['f'],
|
||||
action: 'shortcut-toggle-filterbar',
|
||||
|
|
|
|||
|
|
@ -578,6 +578,7 @@
|
|||
"shortcut-clear-filters": "Clear all filters",
|
||||
"shortcut-close-dialog": "Close Dialog",
|
||||
"shortcut-filter-my-cards": "Filter my cards",
|
||||
"shortcut-filter-my-assigned-cards": "Filter my assigned cards",
|
||||
"shortcut-show-shortcuts": "Bring up this shortcuts list",
|
||||
"shortcut-toggle-filterbar": "Toggle Filter Sidebar",
|
||||
"shortcut-toggle-searchbar": "Toggle Search Sidebar",
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue