Add pre-selection of calendars #20

Merged
tomate merged 4 commits from refs/pull/20/head into master 2022-03-29 20:33:07 +02:00
2 changed files with 5 additions and 3 deletions
Showing only changes of commit 6f96c37358 - Show all commits

View file

@ -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();

View file

@ -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,