CSV Export Button should not be visible when the instance level dashboard is not configured

Steps to reproduce

  1. Find More at the top level navigation and click on that
  2. Click on Security Dashboard
  3. 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.

Actual image

Implementation plan

  • Add a simple if statement to the csv-export-button in ee/app/assets/javascripts/security_dashboard/components/first_class_instance_security_dashboard.vue. If shouldShowEmptyState is true, we shouldn't display the button.