vue-giveworks-form
Version:
This plugin provides Vue.js component for the open [http://giveworks.net](Giveworks Platform).
40 lines (30 loc) • 727 B
JavaScript
import FormEvents from './FormEvents';
export default {
props: {
page: {
type: Object,
required: true
},
form: {
type: Object
},
errors: {
type: [Boolean, Object],
required: true
}
},
mixins: [
FormEvents
],
computed: {
commentMessage() {
return this.page.options.comment_message || this.page.site.config.giveworks.comment_mess;
},
optinMessage() {
return this.page.options.optin_message || this.page.site.config.giveworks.optin_mess;
},
buttonLabel() {
return this.page.options.button;
}
}
};