implement the start and next to a record

This commit is contained in:
Julien Calixte
2023-04-10 19:44:03 +02:00
parent a934c51a2e
commit dcdd871025
3 changed files with 128 additions and 41 deletions

View File

@@ -23,6 +23,10 @@ export class TaskRecord implements Recordable {
return Math.round(durationMilliseconds / (1000 * 60))
}
public get hasStepRecords() {
return Object.values(this.stepRecords).length > 0
}
public static fromRecordable(recordable: Recordable) {
const taskRecord = new TaskRecord(recordable.id, recordable.taskId)