Add `cancel jobs button` to job table tabs
What does this MR do and why?
This is one step to refactor the jobs view for admins from haml to vue. The old haml implementation showed a cancel jobs button
when there were pending
or running
jobs in the list. This MR rebuilds this function in vue/js
Adds cancel job button
to job table tabs
Screenshots or screen recordings
After (only button, ignore the filter):
How to set up and validate locally
- Run test
OR
- type in the console:
rails c
- then:
job = Ci::Build.first
job.status = 'pending'
job.save
- go to:
gitlab.example.com/admin/jobs
(or whatever instance url you have ->Admin Area > CI/CD > Jobs
)
MR acceptance checklist
This checklist encourages us to confirm any changes have been analyzed to reduce risks in quality, performance, reliability, security, and maintainability.
-
I have evaluated the MR acceptance checklist for this MR.
Edited by Andreas Deicha