From f057205158efd42634afc7e1653197d16b80c6e6 Mon Sep 17 00:00:00 2001 From: senderfm Date: Thu, 4 Jul 2019 16:53:56 +0200 Subject: [PATCH] HcContributionForm submit is disabled by default --- webapp/components/ContributionForm/ContributionForm.vue | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/webapp/components/ContributionForm/ContributionForm.vue b/webapp/components/ContributionForm/ContributionForm.vue index 593ff2dc6..f424f45ca 100644 --- a/webapp/components/ContributionForm/ContributionForm.vue +++ b/webapp/components/ContributionForm/ContributionForm.vue @@ -98,7 +98,7 @@ export default { }, id: null, loading: false, - disabled: false, + disabled: true, slug: null, users: [], hashtags: [], @@ -176,6 +176,11 @@ export default { }, updateEditorContent(value) { // this.form.content = value + this.disabled = true + if (value.replace(/

|<\/p>|

|<\/h3>|

|<\/h4>/gm, '').length > 3) { + this.disabled = false + } + this.$refs.contributionForm.update('content', value) }, availableLocales() {