mirror of
https://github.com/ae-utbm/sith.git
synced 2025-01-06 15:11:21 +00:00
Fix missing current permanency display, delegate slot label config to locales
This commit is contained in:
parent
9206fed4ce
commit
203b5d88ac
@ -27,6 +27,7 @@ class PermanencyFilterSchema(FilterSchema):
|
||||
start_before: datetime | None = Field(None, q="start__lte")
|
||||
end_after: datetime | None = Field(None, q="end__gte")
|
||||
end_before: datetime | None = Field(None, q="end__lte")
|
||||
took_place_after: datetime | None = Field(None, q=["start__gte", "end__gte"])
|
||||
counter: set[int] | None = Field(None, q="counter_id__in")
|
||||
|
||||
|
||||
|
@ -34,7 +34,7 @@ async function loadChart(options: ActivityChartConfig) {
|
||||
query: {
|
||||
counter: [options.counterId],
|
||||
// biome-ignore lint/style/useNamingConvention: backend API uses snake_case
|
||||
end_after: options.startDate.toISOString(),
|
||||
took_place_after: options.startDate.toISOString(),
|
||||
},
|
||||
} as PermanencyFetchPermananciesData);
|
||||
|
||||
@ -44,7 +44,6 @@ async function loadChart(options: ActivityChartConfig) {
|
||||
plugins: [timeGridPlugin],
|
||||
initialView: "timeGridWeek",
|
||||
locale: options.locale,
|
||||
slotLabelFormat: { hour: "2-digit", minute: "2-digit", hour12: false },
|
||||
dayHeaderFormat: { weekday: "long" },
|
||||
firstDay: 1,
|
||||
views: { timeGrid: { allDaySlot: false } },
|
||||
|
Loading…
Reference in New Issue
Block a user