mirror of
https://github.com/wekan/wekan.git
synced 2025-12-31 22:58:48 +01:00
Add auto-width and constraint support in list
This commit is contained in:
parent
9576f6807b
commit
f7aa5d0871
3 changed files with 11 additions and 3 deletions
|
|
@ -201,10 +201,16 @@ BlazeComponent.extendComponent({
|
|||
return user.getListWidth(list.boardId, list._id);
|
||||
},
|
||||
|
||||
listConstraint() {
|
||||
const user = ReactiveCache.getCurrentUser();
|
||||
const list = Template.currentData();
|
||||
return user.getListConstraint(list.boardId, list._id);
|
||||
},
|
||||
|
||||
autoWidth() {
|
||||
const user = ReactiveCache.getCurrentUser();
|
||||
const list = Template.currentData();
|
||||
return user.hasAutoWidth(list.boardId);
|
||||
return user.isAutoWidth(list.boardId);
|
||||
},
|
||||
}).register('list');
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue