Commit 9b867e65 authored by Marvin Karegyeya's avatar Marvin Karegyeya Committed by Kushal Pandya

Remove removelabels logic from issues model

parent 032ed705
...@@ -46,7 +46,7 @@ class ListIssue { ...@@ -46,7 +46,7 @@ class ListIssue {
} }
removeLabels(labels) { removeLabels(labels) {
labels.forEach(this.removeLabel.bind(this)); boardsStore.removeIssueLabels(this, labels);
} }
addAssignee(assignee) { addAssignee(assignee) {
......
...@@ -689,6 +689,10 @@ const boardsStore = { ...@@ -689,6 +689,10 @@ const boardsStore = {
} }
}, },
removeIssueLabels(issue, labels) {
labels.forEach(issue.removeLabel.bind(issue));
},
bulkUpdate(issueIds, extraData = {}) { bulkUpdate(issueIds, extraData = {}) {
const data = { const data = {
update: Object.assign(extraData, { update: Object.assign(extraData, {
......
---
title: Remove removeLabels logic from issue model
merge_request: 32252
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