tethys/resources/assets/js/releaseDataset.js
Arno Kaimbacher aac9196650 - composer updates
- no submitters for dataset
- preferred reviewer instead of preferred editor
2020-06-10 21:09:19 +02:00

34 lines
824 B
JavaScript

// releaseDataset.js
import Vue from 'vue';
import VeeValidate from 'vee-validate';
Vue.use(VeeValidate);
const app = new Vue({
el: '#app1',
data() {
return {
dataset: {
firstName: '',
preferred_reviewer: '',
preferred_reviewer_email: ''
},
submitted: false
}
},
methods: {
checkForm(e) {
// Log entire model to console
// console.log(this.dataset);
this.submitted = true;
this.$validator.validate().then(result => {
if (result) {
console.log('From Submitted!');
document.getElementById("releaseForm").submit();
return;
}
});
}
}
});