whole-tale / dashboard

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

Disable Create New Tale button when clicked once #594

Closed ThomasThelen closed 4 years ago

ThomasThelen commented 4 years ago

Fixes issue #587

I added a property to the component that gets set to 'true' when the user clicks the create button, and back to 'false' if there's an error in case they need to click it again. I modified the computed property that dictates enabled/disabled so that it takes this new property into account.

To Test:

  1. Deploy this branch
  2. Open the create new tale modal
  3. Confirm that the create button is only enabled once you enter a title and environment
  4. Click create new tale (and launch if you want)
  5. Note that the button disables before the modal closes
  6. Re-open the modal, note that the state is reset