From 8dffb6f9ad2154786b5187235a9142f948f49c6c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sebastian=20B=C3=B6ckelmann?= Date: Thu, 18 Apr 2024 19:56:25 +0200 Subject: [PATCH] Activate Finishing from active task schedule dashboard --- .../active-schedule/active-schedule.component.html | 2 +- .../active-schedule/active-schedule.component.ts | 8 ++++++++ 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/frontend/src/app/dashboard/active-schedule/active-schedule.component.html b/frontend/src/app/dashboard/active-schedule/active-schedule.component.html index 2804598..d6055c6 100644 --- a/frontend/src/app/dashboard/active-schedule/active-schedule.component.html +++ b/frontend/src/app/dashboard/active-schedule/active-schedule.component.html @@ -15,7 +15,7 @@
- + diff --git a/frontend/src/app/dashboard/active-schedule/active-schedule.component.ts b/frontend/src/app/dashboard/active-schedule/active-schedule.component.ts index 1d2dacf..ea291d2 100644 --- a/frontend/src/app/dashboard/active-schedule/active-schedule.component.ts +++ b/frontend/src/app/dashboard/active-schedule/active-schedule.component.ts @@ -99,6 +99,14 @@ export class ActiveScheduleComponent implements OnInit{ } + finishSchedule() { + this.scheduleService.schedulesScheduleIDStopFinishPost(this.activeSchedule!.scheduleID, true).subscribe({ + next: resp => { + this.activeSchedule = undefined; + } + }) + } + finishManual() { const dialogRef = this.dialog.open(StopScheduleManuallyComponent, { data: this.activeSchedule,