Skip to content

Commit

Permalink
🐛 fix(consent): coche les cookies obligatoires par defaut [DS-3524] (#…
Browse files Browse the repository at this point in the history
…735)

- Les cookies obligatoires doivent être systématiquement cochés
  • Loading branch information
zellerbaptiste authored and lab9fr committed Nov 2, 2023
1 parent 12c3ebc commit 0bccc8f
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/component/consent/example/sample/modal/body.ejs
Original file line number Diff line number Diff line change
Expand Up @@ -45,12 +45,14 @@ function getRadios (id, itemId, type) {
let elementAccept = type === 'all' ? {label: 'Tout accepter'} : { label : 'Accepter'};
let elementRefuse = type === 'all' ? {label: 'Tout refuser'} : { label : 'Refuser'};
let disabled = type === 'mandatory';
let checked = type === 'mandatory';
return [
{
name: id + '-' + name,
...elementAccept,
id: id + '-' + name + '-accept',
checked: checked
},
{
name: id + '-' + name,
Expand Down

0 comments on commit 0bccc8f

Please sign in to comment.