From 267b97f62470230ec408ac702c33e583762a560d Mon Sep 17 00:00:00 2001 From: ToBinio Date: Thu, 28 May 2026 11:05:18 +0200 Subject: [PATCH] slightly improve ux around time type selection --- app/components/Edit/DesktopTodoDataSelect.vue | 13 ++++++++--- app/components/Edit/TabedDataSelect.vue | 16 +++++++++++--- app/components/Edit/Time/TimeRangeSelect.vue | 22 ++++++++++++++++++- .../Edit/Time/TimeRecurringSelect.vue | 12 +++++----- app/components/Utils/SegmentedRadioGroup.vue | 4 ++-- 5 files changed, 52 insertions(+), 15 deletions(-) diff --git a/app/components/Edit/DesktopTodoDataSelect.vue b/app/components/Edit/DesktopTodoDataSelect.vue index f0e0cba..f97a7f7 100644 --- a/app/components/Edit/DesktopTodoDataSelect.vue +++ b/app/components/Edit/DesktopTodoDataSelect.vue @@ -26,9 +26,15 @@ const { timeRange, timeRecurring, timePoint } = useExtractedTime(time); - const selectedTimeType = ref<"range" | "recurring" | "point">( - time.value?.type ?? "range", + const selectedTimeType = ref<"range" | "recurring" | "point" | "none">( + time.value?.type ?? "none", ); + + watch(selectedTimeType, (type) => { + if (type === "none") { + time.value = undefined; + } + });