Commit ec3470e1 authored by Phil Hughes's avatar Phil Hughes Committed by Douglas Barbosa Alexandre

Fixed error when displaying board form

parent b4b0d621
...@@ -51,7 +51,7 @@ ...@@ -51,7 +51,7 @@
}, },
submitDisabled() { submitDisabled() {
if (this.currentPage !== 'milestone') { if (this.currentPage !== 'milestone') {
return board.name === ''; return this.board.name === '';
} }
return false; return false;
......
...@@ -57,7 +57,7 @@ require('./board_new_form'); ...@@ -57,7 +57,7 @@ require('./board_new_form');
return this.boards.length > 1; return this.boards.length > 1;
}, },
title() { title() {
if (this.currentPage === 'edit') { if (this.currentPage === 'edit' || this.currentPage === 'milestone') {
return 'Edit board'; return 'Edit board';
} else if (this.currentPage === 'new') { } else if (this.currentPage === 'new') {
return 'Create new board'; return 'Create new board';
......
...@@ -28,7 +28,8 @@ ...@@ -28,7 +28,8 @@
= dropdown_loading = dropdown_loading
%span %span
Only show issues scheduled for the selected milestone Only show issues scheduled for the selected milestone
%board-milestone-select{ ":milestone-path" => "milestonePath", %board-milestone-select{ "v-if" => "currentPage == 'milestone'",
":milestone-path" => "milestonePath",
":select-milestone" => "selectMilestone", ":select-milestone" => "selectMilestone",
":board" => "board" } ":board" => "board" }
.clearfix.prepend-top-10 .clearfix.prepend-top-10
......
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