CSV Export Button should not be visible when the instance level dashboard is not configured
Steps to reproduce
- Find
More
at the top level navigation and click on that - Click on Security Dashboard
- Make sure it's unconfigured (if it's configured, click on edit dashboard and remove all associated projects).
Expected The CSV Export button is not available.
Implementation plan
-
Add a simple if
statement to thecsv-export-button
inee/app/assets/javascripts/security_dashboard/components/first_class_instance_security_dashboard.vue
. IfshouldShowEmptyState
is true, we shouldn't display the button.
Edit
While this MR follows the implementation plan and hides the button for unconfigured dashboards - there is now a new bug which displays the button for a second till the projects information is fetched. Here is a gif which explains the bug better:
Edited by Savas Vedova