mirror of
https://github.com/wekan/wekan.git
synced 2025-12-18 00:10:13 +01:00
Added initial support for auto-width lists option
This commit is contained in:
parent
f6341de610
commit
0097674fc0
6 changed files with 54 additions and 2 deletions
|
|
@ -38,6 +38,12 @@ BlazeComponent.extendComponent({
|
|||
return user && user.hasStarred(boardId);
|
||||
},
|
||||
|
||||
isAutoWidth() {
|
||||
const boardId = Session.get('currentBoard');
|
||||
const user = ReactiveCache.getCurrentUser();
|
||||
return user && user.hasAutoWidth(boardId);
|
||||
},
|
||||
|
||||
// Only show the star counter if the number of star is greater than 2
|
||||
showStarCounter() {
|
||||
const currentBoard = Utils.getCurrentBoard();
|
||||
|
|
@ -71,6 +77,9 @@ BlazeComponent.extendComponent({
|
|||
'click .js-star-board'() {
|
||||
ReactiveCache.getCurrentUser().toggleBoardStar(Session.get('currentBoard'));
|
||||
},
|
||||
'click .js-auto-width-board'() {
|
||||
ReactiveCache.getCurrentUser().toggleAutoWidth(Session.get('currentBoard'));
|
||||
},
|
||||
'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