182e020835
When the server doesn't respond immediately, there is a visible window of time between the action being submitted and the blocking query coming back with the new job status.
25 lines
762 B
Handlebars
25 lines
762 B
Handlebars
<h1 class="title">
|
|
{{or title job.name}}
|
|
<span class="bumper-left tag {{job.statusClass}}" data-test-job-status>{{job.status}}</span>
|
|
{{yield}}
|
|
{{#if (not (eq job.status "dead"))}}
|
|
{{two-step-button
|
|
data-test-stop
|
|
idleText="Stop"
|
|
cancelText="Cancel"
|
|
confirmText="Yes, Stop"
|
|
confirmationMessage="Are you sure you want to stop this job?"
|
|
awaitingConfirmation=stopJob.isRunning
|
|
onConfirm=(perform stopJob)}}
|
|
{{else}}
|
|
{{two-step-button
|
|
data-test-start
|
|
idleText="Start"
|
|
cancelText="Cancel"
|
|
confirmText="Yes, Start"
|
|
confirmationMessage="Are you sure you want to start this job?"
|
|
awaitingConfirmation=startJob.isRunning
|
|
onConfirm=(perform startJob)}}
|
|
{{/if}}
|
|
</h1>
|