From 442b08b4fab72aa9fb046233e8f9e5646f0b171f Mon Sep 17 00:00:00 2001 From: Lucas Viana Date: Thu, 17 Oct 2024 20:59:40 -0300 Subject: [PATCH] Fix the default end date to allow editing worklogs on days other than the current day --- components/applications/worklog-tracker/WlWorklogTracker.vue | 3 +++ 1 file changed, 3 insertions(+) diff --git a/components/applications/worklog-tracker/WlWorklogTracker.vue b/components/applications/worklog-tracker/WlWorklogTracker.vue index cef935f..15c1c26 100644 --- a/components/applications/worklog-tracker/WlWorklogTracker.vue +++ b/components/applications/worklog-tracker/WlWorklogTracker.vue @@ -81,6 +81,8 @@ const listeners = { if (worklogList.value.length > 0) { item.value.startTime = worklogList.value[0].endTime } + + item.value.endTime = item.value.startTime }, select(index: number): void { item.value = worklogList.value[index] @@ -109,6 +111,7 @@ const methods = { if (worklogList.value.length > 0) { const newValue = new WorklogItem() newValue.startTime = worklogList.value[0].endTime + newValue.endTime = newValue.startTime item.value = newValue } }