Skip to content

Commit

Permalink
Refactor updateEstimation to handle input in hours
Browse files Browse the repository at this point in the history
  • Loading branch information
MaximeGrosmaire committed Sep 20, 2024
1 parent 65f0130 commit f43cac4
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions src/components/lists/TaskList.vue
Original file line number Diff line number Diff line change
Expand Up @@ -532,8 +532,11 @@ export default {
return date ? moment(date, 'YYYY-MM-DD').toDate() : null
},
updateEstimation(days) {
const estimation = daysToMinutes(this.organisation, days)
updateEstimation(duration) {
const estimation = this.organisation.format_duration_in_hours
? duration * 60
: daysToMinutes(this.organisation, duration)
this.updateTasksEstimation({ estimation })
},
Expand Down

0 comments on commit f43cac4

Please sign in to comment.