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,