Hide issue header dropdown button if there are no actions
requested to merge KevSlashNull/gitlab:345392-Remove-incident-header-dropdown-if-there-are-no-actions into master
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 |
---|---|
![]() |
![]() |
How to set up and validate locally
- Login (or impersonate) as a project guest
- Go to a project
- Create an issue
- Login (or impersonate) as a project developer/maintainer/owner
- Change the issue type to Incident
- Login (or impersonate) as a project guest again
- View the incident
- See that there is no empty dropdown on desktop
- See that the dropdown is still visible on mobile (check on mobile, or use your browser’s responsive design mode)
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 Kev