Commit b37db213 authored by Phil Hughes's avatar Phil Hughes

After editing the board milestone, the page reloads to fix the state of the app

This includes elements not being on the page & various store states needing updated
parent 68dbb215
......@@ -78,15 +78,8 @@ const extraMilestones = require('../mixins/extra_milestones');
gl.boardService.createBoard(this.board)
.then(() => {
if (this.currentBoard && this.currentPage !== 'new') {
this.currentBoard.name = this.board.name;
if (this.board.milestone) {
this.currentBoard.milestone_id = this.board.milestone_id;
this.currentBoard.milestone = this.board.milestone;
Store.state.filters.milestone_title = this.currentBoard.milestone_id ?
this.currentBoard.milestone.title : null;
}
// We reload the page to make sure the store & state of the app are correct
location.reload();
}
// Enable the button thanks to our jQuery disabling it
......
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