Commit 17c4cfb3 authored by Lukas Eipert's avatar Lukas Eipert

resolve conflict in app/assets/javascripts/boards/components/sidebar/remove_issue.vue

parent 5d774c8b
...@@ -23,7 +23,6 @@ ...@@ -23,7 +23,6 @@
}, },
methods: { methods: {
removeIssue() { removeIssue() {
<<<<<<< HEAD
const board = Store.state.currentBoard; const board = Store.state.currentBoard;
const issue = this.issue; const issue = this.issue;
const lists = issue.getLists(); const lists = issue.getLists();
...@@ -34,18 +33,11 @@ ...@@ -34,18 +33,11 @@
.map(label => label.id) .map(label => label.id)
.filter(id => !listLabelIds.includes(id)) .filter(id => !listLabelIds.includes(id))
.filter(id => !boardLabelIds.includes(id)); .filter(id => !boardLabelIds.includes(id));
=======
const issue = this.issue;
const lists = issue.getLists();
const listLabelIds = lists.map(list => list.label.id);
let labelIds = issue.labels.map(label => label.id).filter(id => !listLabelIds.includes(id));
>>>>>>> upstream/master
if (labelIds.length === 0) { if (labelIds.length === 0) {
labelIds = ['']; labelIds = [''];
} }
<<<<<<< HEAD
let assigneeIds = issue.assignees let assigneeIds = issue.assignees
.map(assignee => assignee.id) .map(assignee => assignee.id)
.filter(id => id !== board.assignee.id); .filter(id => id !== board.assignee.id);
...@@ -69,14 +61,6 @@ ...@@ -69,14 +61,6 @@
data.issue.weight = null; data.issue.weight = null;
} }
=======
const data = {
issue: {
label_ids: labelIds,
},
};
>>>>>>> upstream/master
// Post the remove data // Post the remove data
Vue.http.patch(this.updateUrl, data).catch(() => { Vue.http.patch(this.updateUrl, data).catch(() => {
Flash(__('Failed to remove issue from board, please try again.')); Flash(__('Failed to remove issue from board, please try again.'));
......
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