From d68794236eacbb8dbde5fc581b7b8e9b969cd1d7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sebastian=20B=C3=B6ckelmann?= Date: Thu, 14 Mar 2024 15:02:50 +0100 Subject: [PATCH] Consider updated Date Selection in Schedule History --- .../schedule-history/schedule-history.component.html | 2 +- .../schedule-history/schedule-history.component.ts | 8 ++++++++ 2 files changed, 9 insertions(+), 1 deletion(-) 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; + } + }) + } } -- 2.34.1