mirror of
https://github.com/wekan/wekan.git
synced 2025-12-16 07:20:12 +01:00
At Public Board, drag resize list width and swimlane height. For logged in users, fix adding labels.
Thanks to xet7 ! Fixes #5922
This commit is contained in:
parent
55bec31a3f
commit
3514335247
13 changed files with 279 additions and 103 deletions
|
|
@ -1619,7 +1619,10 @@ Meteor.methods({
|
|||
check(swimlaneId, String);
|
||||
check(height, Number);
|
||||
const user = ReactiveCache.getCurrentUser();
|
||||
user.setSwimlaneHeightToStorage(boardId, swimlaneId, height);
|
||||
if (user) {
|
||||
user.setSwimlaneHeightToStorage(boardId, swimlaneId, height);
|
||||
}
|
||||
// For non-logged-in users, the client-side code will handle localStorage
|
||||
},
|
||||
|
||||
applyListWidthToStorage(boardId, listId, width, constraint) {
|
||||
|
|
@ -1628,8 +1631,11 @@ Meteor.methods({
|
|||
check(width, Number);
|
||||
check(constraint, Number);
|
||||
const user = ReactiveCache.getCurrentUser();
|
||||
user.setListWidthToStorage(boardId, listId, width);
|
||||
user.setListConstraintToStorage(boardId, listId, constraint);
|
||||
if (user) {
|
||||
user.setListWidthToStorage(boardId, listId, width);
|
||||
user.setListConstraintToStorage(boardId, listId, constraint);
|
||||
}
|
||||
// For non-logged-in users, the client-side code will handle localStorage
|
||||
},
|
||||
setZoomLevel(level) {
|
||||
check(level, Number);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue