Skip to content

Commit

Permalink
Merge pull request #208 from City-of-Helsinki/TILA-1330
Browse files Browse the repository at this point in the history
TILA-1330 make terms of use fields optional
  • Loading branch information
siren authored Mar 2, 2022
2 parents 1cba126 + 86413ac commit 776090f
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1233,7 +1233,6 @@ const ReservationUnitEditor = (): JSX.Element | null => {
<Wide>
<RichTextInput
key={lang}
required
id={fieldName}
label={t(`ReservationUnitEditor.label.${fieldName}`)}
value={get(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -110,9 +110,9 @@ export const schema = Joi.object({
maxReservationDuration: Joi.number().required(),
reservationStartInterval: Joi.string().required(),
metadataSetPk: Joi.number().required(),
termsOfUseFi: Joi.string().required().max(10000),
termsOfUseSv: Joi.string().required().max(10000),
termsOfUseEn: Joi.string().required().max(10000),
termsOfUseFi: Joi.string().allow(null).max(10000),
termsOfUseSv: Joi.string().allow(null).max(10000),
termsOfUseEn: Joi.string().allow(null).max(10000),
additionalInstructionsFi: Joi.string().allow("").max(10000),
additionalInstructionsSv: Joi.string().allow("").max(10000),
additionalInstructionsEn: Joi.string().allow("").max(10000),
Expand Down
6 changes: 3 additions & 3 deletions admin-ui/src/i18n/messages.ts
Original file line number Diff line number Diff line change
Expand Up @@ -914,9 +914,9 @@ const translations: ITranslations = {
lowestPrice: ["Alin hinta"],
highestPrice: ["Ylin hinta"],
metadataSetPk: ["Varauslomake"],
termsOfUseFi: ["Varausyksikkökohtaiset ohjeet fi"],
termsOfUseSv: ["Varausyksikkökohtaiset ohjeet sv"],
termsOfUseEn: ["Varausyksikkökohtaiset ohjeet en"],
termsOfUseFi: ["Varausyksikkökohtaiset lisäehdot fi"],
termsOfUseSv: ["Varausyksikkökohtaiset lisäehdot sv"],
termsOfUseEn: ["Varausyksikkökohtaiset lisäehdot en"],
serviceSpecificTermsPk: ["Palvelukohtaiset täydentävät ehdot"],
cancellationTermsPk: ["Peruutusehdot"],
paymentTermsPk: ["Maksuehdot"],
Expand Down

0 comments on commit 776090f

Please sign in to comment.