fix: toggle all checkbox de tete de colonne

This commit is contained in:
Christophe 2023-02-04 00:13:33 +01:00
parent 77b8179544
commit 22a14a4d2e

View file

@ -1016,12 +1016,11 @@ function changerVue(vue) {
quelleVue.value = vue;
}
function validerCheckboxCol(head) {
let tableau = tableau.value;
if (Tcheckbox.value[head] !== undefined && Tcheckbox.value[head].length) {
Tcheckbox.value[head] = [];
} else {
Tcheckbox.value[head] = [];
tableau.forEach((d) => {
tableau.value.forEach((d) => {
Tcheckbox.value[head].push(d.html.id);
});
}