Commit 52e37496 authored by Simon Knox's avatar Simon Knox

fix initial display when No Milestone selected

parent 5025d35e
...@@ -53,6 +53,7 @@ export default { ...@@ -53,6 +53,7 @@ export default {
} else if (milestone.title === NO_MILESTONE) { } else if (milestone.title === NO_MILESTONE) {
id = 0; id = 0;
} }
this.board.milestone_id = id;
this.board.milestone = { this.board.milestone = {
...milestone, ...milestone,
id, id,
......
...@@ -16,7 +16,9 @@ class BoardsStoreEE { ...@@ -16,7 +16,9 @@ class BoardsStoreEE {
name: '', name: '',
labels: [], labels: [],
milestone: {}, milestone: {},
milestone_id: undefined,
assignee: {}, assignee: {},
assignee_id: undefined,
weight: null, weight: null,
}; };
this.store.updateBoardConfig = this.updateBoardConfig; this.store.updateBoardConfig = this.updateBoardConfig;
...@@ -25,9 +27,11 @@ class BoardsStoreEE { ...@@ -25,9 +27,11 @@ class BoardsStoreEE {
updateBoardConfig(board = {}) { updateBoardConfig(board = {}) {
this.boardConfig.id = board.id; this.boardConfig.id = board.id;
this.boardConfig.name = board.name; this.boardConfig.name = board.name;
this.boardConfig.milestone_id = board.milestone_id;
this.boardConfig.milestone = board.milestone; this.boardConfig.milestone = board.milestone;
this.boardConfig.labels = board.labels || []; this.boardConfig.labels = board.labels || [];
this.boardConfig.assignee = board.assignee || {}; this.boardConfig.assignee = board.assignee || {};
this.boardConfig.assignee_id = board.assignee_id;
this.boardConfig.weight = board.weight; this.boardConfig.weight = board.weight;
} }
......
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