fixing start stop buttons
This commit is contained in:
parent
6c458e2dbb
commit
c2d7931d8d
@ -30,12 +30,12 @@
|
|||||||
<button class="btn btn-danger job-control-button" (click)="remove(i)"><span class="oi oi-trash"></span>
|
<button class="btn btn-danger job-control-button" (click)="remove(i)"><span class="oi oi-trash"></span>
|
||||||
</button>
|
</button>
|
||||||
<button class="btn btn-success job-control-button"
|
<button class="btn btn-success job-control-button"
|
||||||
*ngIf="!jobsService.progress.value[schedule.jobName]"
|
*ngIf="!getProgress(schedule)"
|
||||||
[disabled]="disableButtons"
|
[disabled]="disableButtons"
|
||||||
(click)="start(schedule); $event.stopPropagation();"><span class="oi oi-media-play"></span>
|
(click)="start(schedule); $event.stopPropagation();"><span class="oi oi-media-play"></span>
|
||||||
</button>
|
</button>
|
||||||
<button class="btn btn-secondary job-control-button"
|
<button class="btn btn-secondary job-control-button"
|
||||||
*ngIf="jobsService.progress.value[schedule.jobName]"
|
*ngIf="getProgress(schedule)"
|
||||||
[disabled]="disableButtons || jobsService.progress.value[schedule.jobName].state !== JobProgressStates.running"
|
[disabled]="disableButtons || jobsService.progress.value[schedule.jobName].state !== JobProgressStates.running"
|
||||||
(click)="stop(schedule); $event.stopPropagation();"><span class="oi oi-media-stop"></span>
|
(click)="stop(schedule); $event.stopPropagation();"><span class="oi oi-media-stop"></span>
|
||||||
</button>
|
</button>
|
||||||
@ -121,14 +121,14 @@
|
|||||||
|
|
||||||
<div class="col-md-3">
|
<div class="col-md-3">
|
||||||
<button class="btn btn-success float-right"
|
<button class="btn btn-success float-right"
|
||||||
*ngIf="!jobsService.progress.value[schedule.jobName]"
|
*ngIf="!getProgress(schedule)"
|
||||||
[disabled]="disableButtons"
|
[disabled]="disableButtons"
|
||||||
title="Trigger job run manually"
|
title="Trigger job run manually"
|
||||||
i18n-title
|
i18n-title
|
||||||
(click)="start(schedule)" i18n>Start now
|
(click)="start(schedule)" i18n>Start now
|
||||||
</button>
|
</button>
|
||||||
<button class="btn btn-secondary float-right"
|
<button class="btn btn-secondary float-right"
|
||||||
*ngIf="jobsService.progress.value[schedule.jobName]"
|
*ngIf="getProgress(schedule)"
|
||||||
[disabled]="disableButtons || jobsService.progress.value[schedule.jobName].state !== JobProgressStates.running"
|
[disabled]="disableButtons || jobsService.progress.value[schedule.jobName].state !== JobProgressStates.running"
|
||||||
(click)="stop(schedule)" i18n>Stop
|
(click)="stop(schedule)" i18n>Stop
|
||||||
</button>
|
</button>
|
||||||
|
|||||||
@ -40,7 +40,7 @@
|
|||||||
aria-valuemin="0"
|
aria-valuemin="0"
|
||||||
aria-valuemax="100"
|
aria-valuemax="100"
|
||||||
style="min-width: 2em;"
|
style="min-width: 2em;"
|
||||||
[style.width.%]="(progress.steps.processed+progress.steps.skipped/(progress.steps.all))*100">
|
[style.width.%]="((progress.steps.processed+progress.steps.skipped)/progress.steps.all)*100">
|
||||||
{{progress.steps.processed}}+{{progress.steps.skipped}}/{{progress.steps.all}}
|
{{progress.steps.processed}}+{{progress.steps.skipped}}/{{progress.steps.all}}
|
||||||
</div>
|
</div>
|
||||||
<div
|
<div
|
||||||
|
|||||||
@ -49,7 +49,8 @@ export class ThumbnailSettingsComponent
|
|||||||
}
|
}
|
||||||
|
|
||||||
get Progress() {
|
get Progress() {
|
||||||
return this.jobsService.progress.value[JobDTO.getHashName(DefaultsJobs[DefaultsJobs['Thumbnail Generation']])];
|
return this.jobsService.progress.value[JobDTO.getHashName(DefaultsJobs[DefaultsJobs['Thumbnail Generation']],
|
||||||
|
{sizes: this.original.client.thumbnailSizes[0]})];
|
||||||
}
|
}
|
||||||
|
|
||||||
ngOnInit() {
|
ngOnInit() {
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user