Commit 8d28e510 authored by Kushal Pandya's avatar Kushal Pandya

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

Remove removelabels logic from issues model

See merge request gitlab-org/gitlab!32252
parents d3c735d3 9b867e65
...@@ -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) {
......
...@@ -705,6 +705,10 @@ const boardsStore = { ...@@ -705,6 +705,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