- TRA-89 - Problem solved where connection could get lost in sync between client and backend

- TRA-98 - End user could continue without accepting dpa & terms
- TRA-96 - Multiple-choice questions in mobile client not scrolling -> Solved by introducing new client layout
- TRA-101 - DPA-link was not working
- TRA-102 - Wrong responses when looking for affirmative answers.
This commit is contained in:
Josako
2025-12-02 12:15:50 +01:00
parent 9b86a220b1
commit 94b805e0eb
6 changed files with 86 additions and 19 deletions

View File

@@ -111,7 +111,7 @@
:template="texts.consentRich"
:aria-privacy="texts.ariaPrivacy || 'Open dpa statement in a dialog'"
:aria-terms="texts.ariaTerms || 'Open terms and conditions in a dialog'"
@open-privacy="openPrivacyModal"
@open-dpa="openDpaModal"
@open-terms="openTermsModal"
/>
<span v-if="field.required" class="required" style="color: #d93025; margin-left: 2px;">*</span>
@@ -234,7 +234,7 @@ export default {
texts() {
// Validate that consentRich exists and includes both required tags; otherwise fallback to English base
const hasValidRich = (t) => t && typeof t.consentRich === 'string'
&& /<privacy>[\s\S]*?<\/privacy>/.test(t.consentRich)
&& /<dpa>[\s\S]*?<\/dpa>/.test(t.consentRich)
&& /<terms>[\s\S]*?<\/terms>/.test(t.consentRich);
// 1) Prefer backend-provided rich string on the field's meta (already localized)
@@ -331,10 +331,12 @@ export default {
this.value = file;
}
},
openPrivacyModal() {
openDpaModal() {
console.log('[FormField] openDpaModal emitting open-dpa-modal');
this.$emit('open-dpa-modal');
},
openTermsModal() {
console.log('[FormField] openTermsModal emitting open-terms-modal');
this.$emit('open-terms-modal');
},