whole-tale / dashboard

Whole Tale Dashboard
http://wholetale.org
MIT License
7 stars 2 forks source link

Disable Publish button when no repository is selected #614

Closed bodom0015 closed 4 years ago

bodom0015 commented 4 years ago

Problem

The Publish modal used to prevent the user from submitting if they had not made any selections. Now, it allows for the user to submit an invalid publish request.

Fixes #613

Approach

Disable the button once again if no repo is selected

How to Test

Preconditions: at least 1 zenodo/dataone account connection, at least 1 Tale created

  1. Checkout and run this branch locally, rebuild the dashboard
  2. Login to the WholeTale Dashboard
  3. Navigate to the Run view for a Tale that you own
  4. Expand the ... menu and click "Publish Tale..."
    • You should see that the Publish button is once disabled by default
  5. Select a repository from the dropdown
    • You should see that the Publish button is now enabled