Skip to content

Commit

Permalink
fix: use coherent plural naming for files input
Browse files Browse the repository at this point in the history
  • Loading branch information
derrabauke committed Aug 4, 2022
1 parent 5fa890e commit 799e61c
Show file tree
Hide file tree
Showing 7 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion packages/form-builder/translations/de.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ caluma:
TextareaQuestion: "Text (mehrzeilig)"
TableQuestion: "Tabelle"
FormQuestion: "Formular"
FilesQuestion: "Datei"
FilesQuestion: "Dateien"
StaticQuestion: "Nichtinteraktiver Inhalt"
DateQuestion: "Datum"
DynamicMultipleChoiceQuestion: "Dynamische Mehrfachauswahl"
Expand Down
2 changes: 1 addition & 1 deletion packages/form-builder/translations/en.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ caluma:
TextareaQuestion: "Textarea"
TableQuestion: "Table"
FormQuestion: "Form"
FilesQuestion: "File"
FilesQuestion: "Files"
StaticQuestion: "Non-interactive content"
DateQuestion: "Date"
DynamicMultipleChoiceQuestion: "Dynamic choices"
Expand Down
2 changes: 1 addition & 1 deletion packages/form-builder/translations/fr.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ caluma:
TextareaQuestion: "Texte (plusieurs lignes)"
TableQuestion: "Tableau"
FormQuestion: "Formulaire"
FilesQuestion: "Fichier"
FilesQuestion: "Fichiers"
StaticQuestion: "Contenu non interactif"
DateQuestion: "Date"
DynamicMultipleChoiceQuestion: "Sélection multiple dynamique"
Expand Down
2 changes: 1 addition & 1 deletion packages/form/addon/components/cf-field-value.hbs
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
month="2-digit"
year="numeric"
}}
{{else if (has-question-type @field.question "file")}}
{{else if (has-question-type @field.question "files")}}
{{#each @field.answer.value as |file|}}
<UkButton
@color="link"
Expand Down
4 changes: 2 additions & 2 deletions packages/form/addon/components/cf-field/input.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import Component from "@glimmer/component";
import ActionButtonComponent from "@projectcaluma/ember-form/components/cf-field/input/action-button";
import CheckboxComponent from "@projectcaluma/ember-form/components/cf-field/input/checkbox";
import DateComponent from "@projectcaluma/ember-form/components/cf-field/input/date";
import FileComponent from "@projectcaluma/ember-form/components/cf-field/input/file";
import FilesComponent from "@projectcaluma/ember-form/components/cf-field/input/files";
import FloatComponent from "@projectcaluma/ember-form/components/cf-field/input/float";
import IntegerComponent from "@projectcaluma/ember-form/components/cf-field/input/integer";
import RadioComponent from "@projectcaluma/ember-form/components/cf-field/input/radio";
Expand All @@ -20,7 +20,7 @@ const COMPONENT_MAPPING = {
DateQuestion: DateComponent,
DynamicChoiceQuestion: RadioComponent,
DynamicMultipleChoiceQuestion: CheckboxComponent,
FilesQuestion: FileComponent,
FilesQuestion: FilesComponent,
FloatQuestion: FloatComponent,
IntegerQuestion: IntegerComponent,
MultipleChoiceQuestion: CheckboxComponent,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import fetch from "fetch";

import getFilesAnswerInfoQuery from "@projectcaluma/ember-form/gql/queries/filesanswer-info.graphql";

export default class CfFieldInputFileComponent extends Component {
export default class CfFieldInputFilesComponent extends Component {
@service intl;

@queryManager apollo;
Expand Down

0 comments on commit 799e61c

Please sign in to comment.