Skip to content

Refactor delete action to reusable component

Miguel Rincon requested to merge 347856-runner-delete-button into master

What does this MR do and why?

This change pulls the delete mutation call to a component that can be reused in different locations of the runner UI.

Screenshots or screen recordings

No change in the UI. See the red outline with refactored components in the Runner UI:

Screen_Shot_2022-02-17_at_2.51.46_PM

The delete logic moved from the outer button group to the delete button itself.

How to set up and validate locally

  1. Visit the admin runners http://gdk.test:3000/admin/runners
  2. Ensure the runner can still be deleted.

MR acceptance checklist

This checklist encourages us to confirm any changes have been analyzed to reduce risks in quality, performance, reliability, security, and maintainability.

Related to #347856 (closed)

Edited by Miguel Rincon

Merge request reports