Skip to content

Hide issue header dropdown button if there are no actions

What does this MR do and why?

This MR hides the incident header dropdown button if there are no dropdown items (i.e. actions) in the dropdown.

While the dropdown button may disappear on desktop, it only disappears on mobile if there are no actions on desktop and the user can’t close the issuable.

Related to #345392 (closed)

Screenshots or screen recordings

Before After
image image

How to set up and validate locally

  1. Login (or impersonate) as a project guest
  2. Go to a project
  3. Create an issue
  4. Login (or impersonate) as a project developer/maintainer/owner
  5. Change the issue type to Incident
  6. Login (or impersonate) as a project guest again
  7. View the incident
  8. See that there is no empty dropdown on desktop
  9. See that the dropdown is still visible on mobile (check on mobile, or use your browser’s responsive design mode)
  • image

MR acceptance checklist

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

Edited by Kev

Merge request reports