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:
Lauri Ojansivu 2025-10-19 23:15:55 +03:00
parent 55bec31a3f
commit 3514335247
13 changed files with 279 additions and 103 deletions

View file

@ -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);