a message when finished and access to old records

This commit is contained in:
Julien Calixte
2023-04-10 21:51:57 +02:00
parent 9b518ca851
commit 266be28809
7 changed files with 57 additions and 35 deletions

View File

@@ -1,4 +1,3 @@
import { formatDiffInMinutes } from '@/shared/format-date'
import { toISODate, type ISODate } from '@/shared/types/date'
import type { Recordable } from '../interfaces/recordable'
import type { StepRecordable } from '../interfaces/step-recordable'
@@ -13,14 +12,6 @@ export class TaskRecord implements Recordable {
public readonly taskId: string
) {}
public get duration(): number | null {
if (!this.end) {
return null
}
return formatDiffInMinutes(this.start, this.end)
}
public get hasStepRecords() {
return Object.values(this.stepRecords).length > 0
}