diff --git a/ui/components/Form/Form.vue b/ui/components/Form/Form.vue index 210dd862..180201a8 100644 --- a/ui/components/Form/Form.vue +++ b/ui/components/Form/Form.vue @@ -3,6 +3,7 @@ { + link.action(this); + }; + links.push(link); + } + } + this.links = links; + } + }, + async submit() { this.doc.set('submitted', 1); await this.save(); @@ -105,7 +124,9 @@ export default { if (!isValid && !this.invalidFields.includes(fieldname)) { this.invalidFields.push(fieldname); } else if (isValid) { - this.invalidFields = this.invalidFields.filter(invalidField => invalidField !== fieldname) + this.invalidFields = this.invalidFields.filter( + invalidField => invalidField !== fieldname + ); } }, @@ -113,7 +134,7 @@ export default { const form = this.$el.querySelector('form'); let validity = form.checkValidity(); this.invalid = !validity; - }, + } } }; diff --git a/ui/components/Form/FormActions.vue b/ui/components/Form/FormActions.vue index 4cab83d3..9d1fe420 100644 --- a/ui/components/Form/FormActions.vue +++ b/ui/components/Form/FormActions.vue @@ -1,16 +1,23 @@