Rename activeTime in TaskScheduleStopResponse to workTime to match angular model (Fix NAN minutes in dashboard)
All checks were successful
Java CI with Maven / build (push) Successful in 45s
All checks were successful
Java CI with Maven / build (push) Successful in 45s
This commit is contained in:
parent
fa6b1b4fa1
commit
290cdd2fbf
@ -2,17 +2,17 @@ package core.api.models.timemanager.taskSchedule;
|
||||
|
||||
public class TaskScheduleStopResponse {
|
||||
|
||||
private int activeTime;
|
||||
private int workTime;
|
||||
|
||||
public TaskScheduleStopResponse(int activeTime) {
|
||||
this.activeTime = activeTime;
|
||||
this.workTime = activeTime;
|
||||
}
|
||||
|
||||
public int getActiveTime() {
|
||||
return activeTime;
|
||||
public int getWorkTime() {
|
||||
return workTime;
|
||||
}
|
||||
|
||||
public void setActiveTime(int activeTime) {
|
||||
this.activeTime = activeTime;
|
||||
public void setWorkTime(int workTime) {
|
||||
this.workTime = workTime;
|
||||
}
|
||||
}
|
||||
|
@ -63,6 +63,7 @@ export class ActiveScheduleComponent implements OnInit{
|
||||
schedule: this.activeSchedule!,
|
||||
workedMinutes: resp.workTime
|
||||
})
|
||||
console.log(resp.workTime)
|
||||
this.activeSchedule = undefined
|
||||
}
|
||||
})
|
||||
|
Loading…
Reference in New Issue
Block a user