Skip to content

Commit

Permalink
Fixed bug where stream button would be valid and should be invalid
Browse files Browse the repository at this point in the history
  • Loading branch information
faebser committed Oct 24, 2015
1 parent a814143 commit ddc68f3
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion js/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -311,7 +311,7 @@ var app = (function ($, Vue, superagent) {
_.forEach(state.formData, function validateForm (element) {
element.isValid = element.validator();
});
state.isFormValid = _.reduce(state.formData, function reduceForm (input, element) {
state.isValidForm = _.reduce(state.formData, function reduceForm (input, element) {
if(!element.isValid) {
return false;
}
Expand Down
2 changes: 1 addition & 1 deletion views/template.html
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ <h1>Configuration</h1>
</div>

<div id="streamButtonTemplate">
<a class="button good" v-class="disabled: !state.isFormInValid && state.store.hasErrorItems" v-on="click: runStream">
<a class="button good" v-class="disabled: !state.isValidForm && !state.store.hasErrorItems" v-on="click: runStream">
<span v-class="spanClass" v-text="spanText"></span> {{ 'Stream'|uppercase }}
</a>
</div>
Expand Down

0 comments on commit ddc68f3

Please sign in to comment.