Skip to content

Commit

Permalink
Merge pull request epicmaxco#25 from someburner/someburner-namespace-fix
Browse files Browse the repository at this point in the history
fixed epicmaxco#21 namespace fix
  • Loading branch information
alexanderrudnik authored Sep 20, 2017
2 parents c15e6f9 + 0eed3c3 commit 54ebec0
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -110,8 +110,8 @@
methods: {
isFormFieldValid (field) {
let isValid = false
if (this.fields[field]) {
isValid = this.fields[field].validated && this.fields[field].valid
if (this.formFields[field]) {
isValid = this.formFields[field].validated && this.formFields[field].valid
}
return isValid
},
Expand Down
5 changes: 3 additions & 2 deletions src/components/forms/form-elements/FormElements.vue
Original file line number Diff line number Diff line change
Expand Up @@ -285,8 +285,9 @@
computed: {
isSuccessfulEmailValid () {
let isValid = false
if (this.fields.successfulEmail) {
isValid = this.fields.successfulEmail.validated && this.fields.successfulEmail.valid
if (
.successfulEmail) {
isValid = this.formFields.successfulEmail.validated && this.formFields.successfulEmail.valid
}
return isValid
}
Expand Down
4 changes: 2 additions & 2 deletions src/components/forms/form-wizard/FormWizard.vue
Original file line number Diff line number Diff line change
Expand Up @@ -368,8 +368,8 @@
methods: {
isFormFieldValid (field) {
let isValid = false
if (this.fields[field]) {
isValid = this.fields[field].validated && this.fields[field].valid
if (this.formFields[field]) {
isValid = this.formFields[field].validated && this.formFields[field].valid
}
return isValid
},
Expand Down
4 changes: 3 additions & 1 deletion src/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,9 @@ import VuesticPlugin from 'src/components/vuestic-components/vuestic-components-

Vue.use(VuesticPlugin)
Vue.use(BootstrapVue)
Vue.use(VeeValidate)

// NOTE: workaround for VeeValidate + vuetable-2
Vue.use(VeeValidate, {fieldsBagName: 'formFields'})

sync(store, router)

Expand Down

0 comments on commit 54ebec0

Please sign in to comment.