mirror of
https://github.com/wekan/wekan.git
synced 2026-01-21 00:36:10 +01:00
Assignee field like Jira #2452 , in progress.
Prevent more than one assignee. Thanks to xet7 !
This commit is contained in:
parent
865c8305cb
commit
1728298659
1 changed files with 8 additions and 5 deletions
|
|
@ -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) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue