mirror of
https://github.com/hcengineering/platform.git
synced 2025-03-24 08:37:05 +00:00
UBERF-7721: fixed event display (#6175)
Signed-off-by: Alexander Platov <alexander.platov@hardcoreeng.com>
This commit is contained in:
parent
dd41e487d2
commit
ae05866347
@ -35,8 +35,8 @@
|
|||||||
return new Date(date).setHours(0, 0, 0, 0)
|
return new Date(date).setHours(0, 0, 0, 0)
|
||||||
}
|
}
|
||||||
|
|
||||||
function getTo (date: Date): Timestamp {
|
function getTo (date: Date, days: number = 3): Timestamp {
|
||||||
return new Date(date).setDate(date.getDate() + 3)
|
return new Date(date).setDate(date.getDate() + days)
|
||||||
}
|
}
|
||||||
|
|
||||||
let dayCalendar: DayCalendar
|
let dayCalendar: DayCalendar
|
||||||
@ -58,7 +58,7 @@
|
|||||||
})
|
})
|
||||||
|
|
||||||
$: from = getFrom(currentDate)
|
$: from = getFrom(currentDate)
|
||||||
$: to = getTo(currentDate)
|
$: to = getTo(currentDate, displayedDaysCount)
|
||||||
|
|
||||||
function update (calendars: Calendar[]): void {
|
function update (calendars: Calendar[]): void {
|
||||||
q.query<Event>(
|
q.query<Event>(
|
||||||
@ -220,7 +220,7 @@
|
|||||||
<DayCalendar
|
<DayCalendar
|
||||||
bind:this={dayCalendar}
|
bind:this={dayCalendar}
|
||||||
events={objects}
|
events={objects}
|
||||||
{displayedDaysCount}
|
bind:displayedDaysCount
|
||||||
startFromWeekStart={false}
|
startFromWeekStart={false}
|
||||||
clearCells={dragItem !== null}
|
clearCells={dragItem !== null}
|
||||||
{dragItemId}
|
{dragItemId}
|
||||||
|
Loading…
Reference in New Issue
Block a user