Commit 00da6587 authored by Kushal Pandya's avatar Kushal Pandya

Merge branch 'Remove-removeLabel-logic-from-issues-model' into 'master'

Remove removeLabel logic to from issue model

See merge request gitlab-org/gitlab!32251
parents 554042f9 489ff427
......@@ -40,9 +40,7 @@ class ListIssue {
}
removeLabel(removeLabel) {
if (removeLabel) {
this.labels = this.labels.filter(label => removeLabel.id !== label.id);
}
boardsStore.removeIssueLabel(this, removeLabel);
}
removeLabels(labels) {
......
......@@ -698,6 +698,11 @@ const boardsStore = {
),
);
},
removeIssueLabel(issue, removeLabel) {
if (removeLabel) {
issue.labels = issue.labels.filter(label => removeLabel.id !== label.id);
}
},
addIssueAssignee(issue, 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