- 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

@@ -37,7 +37,7 @@ export default {
const source = (this.template || '');
// 2) parse only allowed tags <dpa>...</dpa> and <terms>...</terms>
const pattern = /<(privacy|terms)>([\s\S]*?)<\/\1>/gi;
const pattern = /<(dpa|terms)>([\s\S]*?)<\/\1>/gi;
const out = [];
let lastIndex = 0;
let match;
@@ -62,8 +62,17 @@ export default {
},
methods: {
emitClick(kind) {
if (kind === 'dpa') this.$emit('open-dpa');
if (kind === 'terms') this.$emit('open-terms');
// Debug logging to trace click events for consent links
console.log('[ConsentRichText] emitClick called with kind =', kind);
if (kind === 'dpa') {
console.log('[ConsentRichText] Emitting open-dpa event');
this.$emit('open-dpa');
}
if (kind === 'terms') {
console.log('[ConsentRichText] Emitting open-terms event');
this.$emit('open-terms');
}
}
}
};