mirror of
https://github.com/wekan/wekan.git
synced 2026-02-14 04:04:21 +01:00
Per-User and Board-level data save fixes. Per-User is collapse, width, height. Per-Board is Swimlanes, Lists, Cards etc.
Thanks to xet7 ! Fixes #5997
This commit is contained in:
parent
2e0e1e56b5
commit
414b8dbf41
11 changed files with 2273 additions and 57 deletions
|
|
@ -158,13 +158,8 @@ Lists.attachSchema(
|
|||
type: String,
|
||||
defaultValue: 'list',
|
||||
},
|
||||
collapsed: {
|
||||
/**
|
||||
* is the list collapsed
|
||||
*/
|
||||
type: Boolean,
|
||||
defaultValue: false,
|
||||
},
|
||||
// NOTE: collapsed state is per-user only, stored in user profile.collapsedLists
|
||||
// and localStorage for non-logged-in users
|
||||
}),
|
||||
);
|
||||
|
||||
|
|
@ -735,23 +730,8 @@ if (Meteor.isServer) {
|
|||
updated = true;
|
||||
}
|
||||
|
||||
// Update collapsed status if provided
|
||||
if (req.body.hasOwnProperty('collapsed')) {
|
||||
const newCollapsed = req.body.collapsed;
|
||||
Lists.direct.update(
|
||||
{
|
||||
_id: paramListId,
|
||||
boardId: paramBoardId,
|
||||
archived: false,
|
||||
},
|
||||
{
|
||||
$set: {
|
||||
collapsed: newCollapsed,
|
||||
},
|
||||
},
|
||||
);
|
||||
updated = true;
|
||||
}
|
||||
// NOTE: collapsed state removed from board-level
|
||||
// It's per-user only - use user profile methods instead
|
||||
|
||||
// Update wipLimit if provided
|
||||
if (req.body.wipLimit) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue