forked from DGNum/metis
Sur mobile on commence avec le planning
This commit is contained in:
parent
22c1b4a784
commit
6328c0342e
3 changed files with 2 additions and 3 deletions
|
@ -25,7 +25,7 @@
|
||||||
let calendar;
|
let calendar;
|
||||||
|
|
||||||
let options = writable({
|
let options = writable({
|
||||||
initialView: 'timeGridWeek',
|
initialView: window.innerWidth < 765 ? 'listWeek' : 'timeGridWeek',
|
||||||
plugins: [
|
plugins: [
|
||||||
timeGridPlugin,
|
timeGridPlugin,
|
||||||
dayGridPlugin,
|
dayGridPlugin,
|
||||||
|
|
|
@ -7,7 +7,7 @@
|
||||||
let subSelections = Array.from({ length: Object.keys(calendarTree).length }, _ => []);
|
let subSelections = Array.from({ length: Object.keys(calendarTree).length }, _ => []);
|
||||||
$: selected = subSelections.flat();
|
$: selected = subSelections.flat();
|
||||||
|
|
||||||
let open = true;
|
let open = false;
|
||||||
const toggle = () => (open = !open);
|
const toggle = () => (open = !open);
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
|
|
|
@ -82,7 +82,6 @@ function fcEventFromjCalEvent(cal) {
|
||||||
color: cal.color,
|
color: cal.color,
|
||||||
duration: end - start // in ms
|
duration: end - start // in ms
|
||||||
}
|
}
|
||||||
console.log(cal)
|
|
||||||
|
|
||||||
fcEvent.calendar = cal.name
|
fcEvent.calendar = cal.name
|
||||||
fcEvent.short_name = evt.summary
|
fcEvent.short_name = evt.summary
|
||||||
|
|
Loading…
Reference in a new issue