Fix minore

This commit is contained in:
Pek5892 2023-01-27 12:42:04 +01:00
parent 6e3656a0da
commit 4cd4347fa4
1 changed files with 4 additions and 4 deletions

View File

@ -331,9 +331,9 @@ $vista = setting('Vista dashboard');
if ($vista == 'mese') { if ($vista == 'mese') {
$def = 'dayGridMonth'; $def = 'dayGridMonth';
} elseif ($vista == 'giorno') { } elseif ($vista == 'giorno') {
$def = 'timeGridWeek'; $def = 'resourceTimeGridDay';
} elseif ($vista == 'settimana') { } elseif ($vista == 'settimana') {
$def = 'listWeek'; $def = 'timeGridWeek';
} else { } else {
$def = 'listWeek'; $def = 'listWeek';
} }
@ -514,14 +514,14 @@ globals.dashboard = {
headerToolbar: { headerToolbar: {
left: "prev,next today", left: "prev,next today",
center: "title", center: "title",
right: "dayGridMonth,timeGridWeek,listWeek" right: "dayGridMonth,timeGridWeek,resourceTimeGridDay,listWeek"
}, },
eventDisplay: "block", eventDisplay: "block",
timeFormat: globals.dashboard.timeFormat, timeFormat: globals.dashboard.timeFormat,
slotLabelFormat: globals.dashboard.timeFormat, slotLabelFormat: globals.dashboard.timeFormat,
slotDuration: "00:15:00", slotDuration: "00:15:00",
snapDuration: globals.snapDuration, snapDuration: globals.snapDuration,
initialView: "dayGridMonth", initialView: globals.dashboard.style,
slotMinTime: globals.dashboard.start_time, slotMinTime: globals.dashboard.start_time,
slotMaxTime: globals.dashboard.end_time, slotMaxTime: globals.dashboard.end_time,
lazyFetching: true, lazyFetching: true,