Use data from current tab of Vue MR list page for export to CSV

What does this MR do and why?

Currently, the values for the csv export path and the count of items to be exported when viewing the Vue MR list page is loaded once on page load, which means that only the items in the tab that is loaded initially get exported. This MR adjusts this to use the data from the current tab for export.

References

Please include cross links to any resources that are relevant to this MR. This will give reviewers and future readers helpful context to give an efficient review of the changes introduced.

Screenshots or screen recordings

Before After
gdk.test_3000_flightjs_Flight_-merge_requests__3 gdk.test_3000_flightjs_Flight_-merge_requests__2

How to set up and validate locally

  1. Check out this branch
  2. Ensure vue_merge_request_list flag is on for your GDK
  3. Visit the MR list page for a project in the GDK
  4. Click on one of the non-open tabs
  5. use the action menu to export to CSV
  6. You will see that when the modal opens to confirm your selection, the count shown in the modal matches the tab you are viewing on the MR list page
Edited by Chad Lavimoniere

Merge request reports

Loading