Commit 489ff427 authored by Marvin Karegyeya's avatar Marvin Karegyeya Committed by Kushal Pandya

Remove removeLabel logic to from issue model

parent 032ed705
...@@ -40,9 +40,7 @@ class ListIssue { ...@@ -40,9 +40,7 @@ class ListIssue {
} }
removeLabel(removeLabel) { removeLabel(removeLabel) {
if (removeLabel) { boardsStore.removeIssueLabel(this, removeLabel);
this.labels = this.labels.filter(label => removeLabel.id !== label.id);
}
} }
removeLabels(labels) { removeLabels(labels) {
......
...@@ -682,6 +682,11 @@ const boardsStore = { ...@@ -682,6 +682,11 @@ const boardsStore = {
), ),
); );
}, },
removeIssueLabel(issue, removeLabel) {
if (removeLabel) {
issue.labels = issue.labels.filter(label => removeLabel.id !== label.id);
}
},
addIssueAssignee(issue, assignee) { addIssueAssignee(issue, assignee) {
if (!issue.findAssignee(assignee)) { if (!issue.findAssignee(assignee)) {
......
---
title: Remove removeLabel logic from issue model
merge_request: 32251
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