issue-112 #115
@ -15,7 +15,7 @@
|
|||||||
<mat-card-actions>
|
<mat-card-actions>
|
||||||
<button class="btn btn-secondary" (click)="stopTask(false)">Stop</button>
|
<button class="btn btn-secondary" (click)="stopTask(false)">Stop</button>
|
||||||
<div class="btn-group">
|
<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">
|
<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>
|
<span class="visually-hidden">Toggle Dropdown</span>
|
||||||
</button>
|
</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() {
|
finishManual() {
|
||||||
const dialogRef = this.dialog.open(StopScheduleManuallyComponent, {
|
const dialogRef = this.dialog.open(StopScheduleManuallyComponent, {
|
||||||
data: this.activeSchedule,
|
data: this.activeSchedule,
|
||||||
|
Loading…
Reference in New Issue
Block a user