issue-112 #115
@ -15,7 +15,7 @@
|
||||
<mat-card-actions>
|
||||
<button class="btn btn-secondary" (click)="stopTask(false)">Stop</button>
|
||||
<div class="btn-group">
|
||||
<button type="button" class="btn btn-success">Finish</button>
|
||||
<button type="button" class="btn btn-success" (click)="finishSchedule()">Finish</button>
|
||||
<button type="button" class="btn btn-success dropdown-toggle dropdown-toggle-split" data-bs-toggle="dropdown" aria-expanded="false">
|
||||
<span class="visually-hidden">Toggle Dropdown</span>
|
||||
</button>
|
||||
|
@ -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,
|
||||
|
Loading…
Reference in New Issue
Block a user