Commit feffc3ec authored by Simon Knox's avatar Simon Knox

pick some missing JS

parent eff1c121
...@@ -33,11 +33,12 @@ gl.issueBoards.RemoveIssueBtn = Vue.extend({ ...@@ -33,11 +33,12 @@ gl.issueBoards.RemoveIssueBtn = Vue.extend({
const issue = this.issue; const issue = this.issue;
const lists = issue.getLists(); const lists = issue.getLists();
const listLabelIds = lists.map(list => list.label.id); const listLabelIds = lists.map(list => list.label.id);
const labelIds = this.issue.labels let labelIds = this.issue.labels
.map(label => label.id) .map(label => label.id)
.filter(id => !listLabelIds.includes(id)); .filter(id => !listLabelIds.includes(id));
if (labelIds.length === 0) {
// Post the remove data labelIds = [''];
}
const data = { const data = {
issue: { issue: {
label_ids: labelIds, label_ids: labelIds,
......
...@@ -112,6 +112,7 @@ class List { ...@@ -112,6 +112,7 @@ class List {
.then((data) => { .then((data) => {
issue.id = data.id; issue.id = data.id;
issue.iid = data.iid; issue.iid = data.iid;
issue.project = data.project;
if (this.issuesSize > 1) { if (this.issuesSize > 1) {
const moveBeforeId = this.issues[1].id; const moveBeforeId = this.issues[1].id;
......
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