1
0
Fork 0
mirror of https://github.com/seanmorley15/AdventureLog.git synced 2025-07-19 12:59:36 +02:00

feat(DateRangeCollapse): auto-detect all-day setting for transportation and lodging types

This commit is contained in:
Sean Morley 2025-06-18 22:29:37 -04:00
parent 9964398e25
commit 3b0ccdb6d3

View file

@ -51,6 +51,11 @@
let isEditing = false; // Disable reactivity when editing
onMount(async () => {
// Auto-detect all-day for transportation and lodging types
if ((type === 'transportation' || type === 'lodging') && utcStartDate) {
allDay = isAllDay(utcStartDate);
}
// Initialize UTC dates
localStartDate = updateLocalDate({
utcDate: utcStartDate,