Assignee field like Jira #2452 , in progress.

Prevent more than one assignee.

Thanks to xet7 !
This commit is contained in:
Lauri Ojansivu 2019-11-06 23:36:43 +02:00
parent 865c8305cb
commit 1728298659

View file

@ -1195,11 +1195,14 @@ Cards.mutations({
},
assignAssignee(assigneeId) {
return {
$addToSet: {
assignees: assigneeId,
},
};
// If there is not any assignee, allow one assignee, not more.
if (this.getAssignees().length === 0) {
return {
$addToSet: {
assignees: assigneeId,
},
};
}
},
unassignMember(memberId) {