Commit 48d9fa5e authored by Kushal Pandya's avatar Kushal Pandya

Merge branch 'Remove-removeAssignee-logic-from-issue-model' into 'master'

Remove removeAssignee logic from issue logic

See merge request gitlab-org/gitlab!32248
parents 8122c4d3 0939643f
......@@ -60,9 +60,7 @@ class ListIssue {
}
removeAssignee(removeAssignee) {
if (removeAssignee) {
this.assignees = this.assignees.filter(assignee => assignee.id !== removeAssignee.id);
}
boardsStore.removeIssueAssignee(this, removeAssignee);
}
removeAllAssignees() {
......
......@@ -682,6 +682,11 @@ const boardsStore = {
...this.multiSelect.list.slice(index + 1),
];
},
removeIssueAssignee(issue, removeAssignee) {
if (removeAssignee) {
issue.assignees = issue.assignees.filter(assignee => assignee.id !== removeAssignee.id);
}
},
clearMultiSelect() {
this.multiSelect.list = [];
......
---
title: Remove removeAssignee logic from issue model
merge_request: 32248
author: nuwe1
type: other
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment