diff --git a/webapp/components/ContributionForm/ContributionForm.vue b/webapp/components/ContributionForm/ContributionForm.vue index f6ebf6bcc..236a1a722 100644 --- a/webapp/components/ContributionForm/ContributionForm.vue +++ b/webapp/components/ContributionForm/ContributionForm.vue @@ -24,7 +24,7 @@ {{ form.title.length }}/{{ formSchema.title.max }} - + {{ form.contentLength }} - + {{ form.contentLength }} @@ -71,7 +71,7 @@ {{ form.categoryIds.length }} / 3 - + > {{ form.categoryIds.length }} / 3 @@ -79,18 +79,28 @@ - - + + + + {{ form.language.label }} + + + + {{ $t('contribution.languageSelectLabel') }} + + +
= this.contentMin const passesCategoryValidations = this.form.categoryIds.length > 0 && this.form.categoryIds.length <= 3 - this.failsValidations = !(passesContentValidations && passesCategoryValidations) + const passedLanguageValidation = this.form.language !== null + + this.failsValidations = !( + passesContentValidations && + passesCategoryValidations && + passedLanguageValidation + ) }, }, apollo: { @@ -334,4 +356,7 @@ export default { .checkicon_cat { top: -58px; } +.colorRed { + color: red; +} diff --git a/webapp/locales/de.json b/webapp/locales/de.json index 34cd948ed..eba0c7d26 100644 --- a/webapp/locales/de.json +++ b/webapp/locales/de.json @@ -579,7 +579,8 @@ "filterFollow": "Beiträge filtern von Usern denen ich folge", "filterALL": "Alle Beiträge anzeigen", "success": "Gespeichert!", - "languageSelectLabel": "Sprache", + "languageSelectLabel": "Sprache deines Beitrags", + "languageSelectText": "Sprache wählen", "categories": { "infoSelectedNoOfMaxCategories": "{chosen} von {max} Kategorien ausgewählt" }, diff --git a/webapp/locales/en.json b/webapp/locales/en.json index d3b4e8edc..e51eab534 100644 --- a/webapp/locales/en.json +++ b/webapp/locales/en.json @@ -580,7 +580,8 @@ "filterFollow": "Filter contributions from users I follow", "filterALL": "View all contributions", "success": "Saved!", - "languageSelectLabel": "Language", + "languageSelectLabel": "Language of your contribution", + "languageSelectText": "Select Language", "categories": { "infoSelectedNoOfMaxCategories": "{chosen} of {max} categories selected" },