mirror of
https://github.com/wekan/wekan.git
synced 2025-12-16 23:40:13 +01:00
Added initial support for auto-width lists option
This commit is contained in:
parent
f6341de610
commit
0097674fc0
6 changed files with 54 additions and 2 deletions
|
|
@ -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 {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue