mirror of
https://github.com/wekan/wekan.git
synced 2025-12-27 20:58:48 +01:00
parent
f6d000b26a
commit
acf9e7caea
1 changed files with 12 additions and 3 deletions
|
|
@ -1412,15 +1412,24 @@ Cards.mutations({
|
|||
|
||||
assignAssignee(assigneeId) {
|
||||
// If there is not any assignee, allow one assignee, not more.
|
||||
/*
|
||||
if (this.getAssignees().length === 0) {
|
||||
return {
|
||||
$addToSet: {
|
||||
assignees: assigneeId,
|
||||
},
|
||||
};
|
||||
} else {
|
||||
return false;
|
||||
}
|
||||
*/
|
||||
// Allow more that one assignee:
|
||||
// https://github.com/wekan/wekan/issues/3302
|
||||
return {
|
||||
$addToSet: {
|
||||
assignees: assigneeId,
|
||||
},
|
||||
};
|
||||
//} else {
|
||||
// return false,
|
||||
//}
|
||||
},
|
||||
|
||||
unassignMember(memberId) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue