Add pre-selection of calendars #20
2 changed files with 5 additions and 3 deletions
|
@ -96,7 +96,10 @@
|
|||
return source ? source.export_url : undefined;
|
||||
})();
|
||||
|
||||
initial.includes(item) ? filtering.setChecked() : filtering.setUnchecked();
|
||||
setTimeout(
|
||||
() => (initial.includes(item) ? filtering.setChecked() : filtering.setUnchecked()),
|
||||
0
|
||||
);
|
||||
|
||||
$: selected =
|
||||
$filtering === CHECKED ? [item, ...subselected.flat()] : subselected.flat();
|
||||
|
|
|
@ -26,8 +26,7 @@ const calendars = {
|
|||
w442JdS5AaQ6czrP: {
|
||||
cloud: clouds.ELEVES_ENS,
|
||||
name: "Écriv'ENS",
|
||||
color: null,
|
||||
initial: false
|
||||
color: null
|
||||
},
|
||||
fRtjDkjrZyn6fxd8: {
|
||||
cloud: clouds.ELEVES_ENS,
|
||||
|
|
Loading…
Reference in a new issue