When clicking Cancel on the Select Data modal, the user's selection is not cleared. The next time the user opens the modal, their previously-added data is still present. This could cause confusion.
Fixes #539
Approach
When opening the modal, parse the Tale's dataSet list and explicitly set that as the content of the modal.
How to Test
Checkout and run this branch locally, rebuild the dashboard
Login to the WholeTale Dashboard
Navigate to the "Run > Files" view for a Tale
On the left side, click the External Data nav
At the top-right, click the (+) button
The Select Data modal should open
Add some new datasets, then click "Cancel"
The modal should dismiss
The datasets listed in the directory-browser on the Run > Files view should not have changed
At the top-right, click the (+) button
The Select Data modal should open again
You should no longer see the datasets that were added then cancelled
The modal should only show datasets that are already added to the Tale
Problem
When clicking Cancel on the Select Data modal, the user's selection is not cleared. The next time the user opens the modal, their previously-added data is still present. This could cause confusion.
Fixes #539
Approach
When opening the modal, parse the Tale's
dataSet
list and explicitly set that as the content of the modal.How to Test
directory-browser
on the Run > Files view should not have changed