Commit 394ca1bc authored by Oswaldo Ferreira's avatar Oswaldo Ferreira

Pass correct values to FE when creating an issue on the board

parent 4a4adbe2
......@@ -42,7 +42,6 @@ export default {
this.error = false;
// TODO: add board labels
const labels = this.list.label ? [this.list.label] : [];
const issue = new ListIssue({
title: this.title,
......@@ -53,7 +52,11 @@ export default {
});
if (Store.state.currentBoard) {
issue.milestone_id = Store.state.currentBoard.milestone_id;
const board = Store.state.currentBoard;
issue.assignees = [board.assignee];
issue.labels = _.sortBy(_.uniq([...labels, ...board.labels], label => label.id),
'title');
}
eventHub.$emit(`scroll-board-list-${this.list.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