- 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:
@@ -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');
|
||||
}
|
||||
}
|
||||
}
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user