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:
parent
9964398e25
commit
3b0ccdb6d3
1 changed files with 5 additions and 0 deletions
|
@ -51,6 +51,11 @@
|
||||||
let isEditing = false; // Disable reactivity when editing
|
let isEditing = false; // Disable reactivity when editing
|
||||||
|
|
||||||
onMount(async () => {
|
onMount(async () => {
|
||||||
|
// Auto-detect all-day for transportation and lodging types
|
||||||
|
if ((type === 'transportation' || type === 'lodging') && utcStartDate) {
|
||||||
|
allDay = isAllDay(utcStartDate);
|
||||||
|
}
|
||||||
|
|
||||||
// Initialize UTC dates
|
// Initialize UTC dates
|
||||||
localStartDate = updateLocalDate({
|
localStartDate = updateLocalDate({
|
||||||
utcDate: utcStartDate,
|
utcDate: utcStartDate,
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue