Skip to content

Commit

Permalink
Fix the default end date to allow editing worklogs on days other than…
Browse files Browse the repository at this point in the history
… the current day
  • Loading branch information
LSViana committed Oct 17, 2024
1 parent 3164a70 commit 442b08b
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions components/applications/worklog-tracker/WlWorklogTracker.vue
Original file line number Diff line number Diff line change
Expand Up @@ -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]
Expand Down Expand Up @@ -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
}
}
Expand Down

0 comments on commit 442b08b

Please sign in to comment.