Added initial support for auto-width lists option

This commit is contained in:
Nadav Tasher 2024-11-28 01:18:51 +02:00
parent f6341de610
commit 0097674fc0
6 changed files with 54 additions and 2 deletions

View file

@ -716,6 +716,11 @@ Users.helpers({
return _.contains(starredBoards, boardId);
},
hasAutoWidth(boardId) {
const { autoWidths = {} } = this.profile || {};
return autoWidths[boardId] === true;
},
invitedBoards() {
const { invitedBoards = [] } = this.profile || {};
return Boards.userBoards(
@ -974,6 +979,17 @@ Users.mutations({
},
};
},
toggleAutoWidth(boardId) {
const { autoWidths = {} } = this.profile || {};
autoWidths[boardId] = !autoWidths[boardId];
return {
$set: {
'profile.autoWidths': autoWidths,
},
};
},
addInvite(boardId) {
return {