feat: add abort button for job cancellation
This commit is contained in:
1 parent
f779f05190
commit
6783ff3970
6 files changed
+54
No files matched your search
@@ -8,6 +8,7 @@
|
||||
<span class="status-badge badge badge-{{ 'info' if job.status.name == 'RUNNING' else 'warning' if job.status.name == 'PENDING' else 'success' if job.status.name == 'COMPLETED' else 'error' if job.status.name == 'FAILED' else 'neutral' }}" id="status-badge">
|
||||
{{ job.status.name }}
|
||||
</span>
|
||||
<button class="btn btn-danger btn-sm" id="cancel-btn" style="display:{{ 'inline-flex' if job.status.name in ('PENDING', 'RUNNING') else 'none' }}" aria-label="Abort this job">Abort</button>
|
||||
<time class="status-time" id="created-time" datetime="{{ job.created_at }}">{{ job.created_at | int }}</time>
|
||||
</div>
|
||||
<h2 class="job-id" id="job-title">Job {{ job.job_id[:8] }}...</h2>
|
||||
|
||||
Reference in new issue
Block a user