From 6a3d534eadfaa735a1dc8892742e2d7563fed14f Mon Sep 17 00:00:00 2001 From: roschaefer Date: Thu, 19 Sep 2019 00:15:39 +0200 Subject: [PATCH] Fix #1639 --- webapp/components/ContributionForm/ContributionForm.vue | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/webapp/components/ContributionForm/ContributionForm.vue b/webapp/components/ContributionForm/ContributionForm.vue index 7143e3b6f..c783298f4 100644 --- a/webapp/components/ContributionForm/ContributionForm.vue +++ b/webapp/components/ContributionForm/ContributionForm.vue @@ -21,7 +21,7 @@ :hashtags="hashtags" @input="updateEditorContent" /> - {{ form.contentLength }}/{{ contentMax }} + {{ form.contentLength }} = this.contentMin && this.form.contentLength <= this.contentMax + const passesContentValidations = this.form.contentLength >= this.contentMin const passesCategoryValidations = this.form.categoryIds.length > 0 && this.form.categoryIds.length <= 3 this.failsValidations = !(passesContentValidations && passesCategoryValidations)