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 { ...@@ -60,9 +60,7 @@ class ListIssue {
} }
removeAssignee(removeAssignee) { removeAssignee(removeAssignee) {
if (removeAssignee) { boardsStore.removeIssueAssignee(this, removeAssignee);
this.assignees = this.assignees.filter(assignee => assignee.id !== removeAssignee.id);
}
} }
removeAllAssignees() { removeAllAssignees() {
......
...@@ -682,6 +682,11 @@ const boardsStore = { ...@@ -682,6 +682,11 @@ const boardsStore = {
...this.multiSelect.list.slice(index + 1), ...this.multiSelect.list.slice(index + 1),
]; ];
}, },
removeIssueAssignee(issue, removeAssignee) {
if (removeAssignee) {
issue.assignees = issue.assignees.filter(assignee => assignee.id !== removeAssignee.id);
}
},
clearMultiSelect() { clearMultiSelect() {
this.multiSelect.list = []; 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