mirror of
https://github.com/wekan/wekan.git
synced 2025-04-23 13:37:09 -04:00
Allow toggling profile.keyboardShortcuts from boardHeader
This commit is contained in:
parent
658e43ab54
commit
295c9c8617
1 changed files with 8 additions and 0 deletions
|
@ -45,6 +45,11 @@ BlazeComponent.extendComponent({
|
|||
return user && user.isAutoWidth(boardId);
|
||||
},
|
||||
|
||||
isKeyboardShortcuts() {
|
||||
const user = ReactiveCache.getCurrentUser();
|
||||
return user && user.isKeyboardShortcuts();
|
||||
},
|
||||
|
||||
// Only show the star counter if the number of star is greater than 2
|
||||
showStarCounter() {
|
||||
const currentBoard = Utils.getCurrentBoard();
|
||||
|
@ -82,6 +87,9 @@ BlazeComponent.extendComponent({
|
|||
dragscroll.reset();
|
||||
ReactiveCache.getCurrentUser().toggleAutoWidth(Utils.getCurrentBoardId());
|
||||
},
|
||||
'click .js-keyboard-shortcuts-toggle'() {
|
||||
ReactiveCache.getCurrentUser().toggleKeyboardShortcuts();
|
||||
},
|
||||
'click .js-open-board-menu': Popup.open('boardMenu'),
|
||||
'click .js-change-visibility': Popup.open('boardChangeVisibility'),
|
||||
'click .js-watch-board': Popup.open('boardChangeWatch'),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue