Add ability to remove panels in analytics dashboard
Problem to solve
With Add saved visualizations as panels to dashboard (#385705 - closed) users can add new panels, however users are unable to remove panels.
Proposal
Add the ability to remove panels when in edit mode.
Design
Implementation plan
frontend
- Add a GlDisclosureDropdown to the top right hand corner of panels when a dashboard is in edit mode.
- Add a list item
Delete
, prepended with a trash icon, when clicked remove the panel from the dashboard.- Note: A confirmation shouldn't be required because the mutation isn't permanent until a user saves the dashboard changes.
- Update specs.
Edited by Jiaan Louw