Commit 0939643f authored by Marvin Karegyeya's avatar Marvin Karegyeya Committed by Kushal Pandya

Remove removeAssignee logic from issue logic

parent 3a51227b
...@@ -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