diff --git a/frontend/src/app/statistics/schedule-history/schedule-history.component.html b/frontend/src/app/statistics/schedule-history/schedule-history.component.html index 058a7fa..c63091d 100644 --- a/frontend/src/app/statistics/schedule-history/schedule-history.component.html +++ b/frontend/src/app/statistics/schedule-history/schedule-history.component.html @@ -3,7 +3,7 @@ Choose a date - + MM/DD/YYYY diff --git a/frontend/src/app/statistics/schedule-history/schedule-history.component.ts b/frontend/src/app/statistics/schedule-history/schedule-history.component.ts index 2752c29..c2b1dad 100644 --- a/frontend/src/app/statistics/schedule-history/schedule-history.component.ts +++ b/frontend/src/app/statistics/schedule-history/schedule-history.component.ts @@ -59,4 +59,12 @@ export class ScheduleHistoryComponent implements OnInit{ return duration.asMinutes() + " Minutes"; } + + onUpdateSelectedDate() { + this.historyService.historySchedulesDateGet(moment(this.selectedDate).format("YYYY-MM-DD")).subscribe({ + next: resp => { + this.schedules = resp; + } + }) + } }