Skip to content

Migrate link_to to ButtonComponent

What does this MR do and why?

Migrate link_to to ButtonComponent

  • app/views/shared/_service_ping_consent.html.haml
  • ee/app/views/admin/users/_admin_export_user_permissions.html.haml
  • ee/app/views/groups/ protected_environments/_protected_environment.html.haml

Changelog: changed EE: true

Screenshots or screen recordings

Before After
image image
image image
image image

How to set up and validate locally

app/views/shared/_service_ping_consent.html.haml

  1. Edit app/views/shared/_service_ping_consent.html.haml and remove the conditional at line 1.
  2. Open any repository/project and an alert/banner should show up with the buttons rendered.

ee/app/views/admin/users/_admin_export_user_permissions.html.haml

  1. Go to /admin/users

ee/app/views/groups/protected_environments/_protected_environment.html.haml

  1. Open any Group page with subgroups (add new one if necessary)
  2. Go to Settings > CI/CD > Protected Environments
  3. Protect an environment with the subgroup assigned.
  4. There should now be an entry with Unprotect button.

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 #416048 (closed), #416054 (closed), #416028 (closed)

Edited by Shane Maglangit (Personal)

Merge request reports

Loading