From 1829d9cf8b42639c8eb2c2ec8153492ea7583f41 Mon Sep 17 00:00:00 2001 From: yelinz Date: Thu, 4 Jan 2024 15:29:15 +0100 Subject: [PATCH] feat(ember): add disclaimer for interests --- ember/app/ui/application/route.js | 2 +- ember/app/ui/components/identity-interests/template.hbs | 4 ++++ ember/tests/acceptance/identities-test.js | 2 +- ember/translations/components/identity-interests/de.yaml | 1 + ember/translations/components/identity-interests/en.yaml | 1 + ember/translations/components/identity-interests/fr.yaml | 1 + 6 files changed, 9 insertions(+), 2 deletions(-) diff --git a/ember/app/ui/application/route.js b/ember/app/ui/application/route.js index 29d528e7d..2f575ba80 100644 --- a/ember/app/ui/application/route.js +++ b/ember/app/ui/application/route.js @@ -11,7 +11,7 @@ export default class ApplicationRoute extends Route { await this.session.setup(); - const locale = localStorage.getItem("locale") ?? "en"; + const locale = localStorage.getItem("locale") ?? "de"; this.intl.setLocale([locale]); this.calumaOptions.registerComponentOverride({ diff --git a/ember/app/ui/components/identity-interests/template.hbs b/ember/app/ui/components/identity-interests/template.hbs index 6f8d69f94..a9fadb874 100644 --- a/ember/app/ui/components/identity-interests/template.hbs +++ b/ember/app/ui/components/identity-interests/template.hbs @@ -65,6 +65,10 @@ {{t "components.identity-interests.form.title.add"}} +

+ {{t "components.identity-interests.disclaimer" htmlSafe=true}} +

+ Hinweise zum Datenschutz gelesen habe und sie akzeptiere." list: delete: "Interesse löschen" diff --git a/ember/translations/components/identity-interests/en.yaml b/ember/translations/components/identity-interests/en.yaml index 0b52e36cc..e9137f53e 100644 --- a/ember/translations/components/identity-interests/en.yaml +++ b/ember/translations/components/identity-interests/en.yaml @@ -2,6 +2,7 @@ components: identity-interests: title: "Interests" add: "Add interest" + disclaimer: "By saving, I agree to receive information or publications from the SAHS on the interests I have indicated and confirm that I have read and accept the information on data protection." list: delete: "Delete interest" diff --git a/ember/translations/components/identity-interests/fr.yaml b/ember/translations/components/identity-interests/fr.yaml index dd88fea31..4b8bf17a4 100755 --- a/ember/translations/components/identity-interests/fr.yaml +++ b/ember/translations/components/identity-interests/fr.yaml @@ -2,6 +2,7 @@ components: identity-interests: title: "Intérêts" add: "Ajouter un intérêt" + disclaimer: "En enregistrant, je donne mon accord pour recevoir de l’ASSH des informations ou des publications en lien avec les intérêts que j’ai indiqués et je confirme avoir lu et accepté les indications relatives à la protection des données." list: delete: "Supprimer un intérêt"