Dashboard dropdown selected item text is unreadable
Summary
The selected text in Dashboard dropdown control in the Monitor dashboard shows the full path of the dashboard configuration file instead the filename.
Steps to reproduce
- Create a project with autodevops enabled
- Create a couple of custom dashboards (here is an example for a dashboard https://docs.gitlab.com/ee/user/project/integrations/prometheus.html#single-stat)
- After the dashboards have been created and deployed navigate to Operations > Metrics
- Select a non-default dashboard from the dashboard dropdown.
- Notice that the selected dashboard in the dropdown shows the entire file path instead of just the name.
What is the expected correct behavior?
Should show the file name instead of the path.