clowder-framework / clowder

A data management system that allows users to share, annotate, organize and analyze large collections of datasets. It provides support for extensible metadata annotation using JSON-LD and a distribute analytics event bus for automatic curation of uploaded data.
https://clowderframework.org/
University of Illinois/NCSA Open Source License
35 stars 17 forks source link

double click on create dataset creates 2 datasets #311

Closed robkooper closed 1 year ago

robkooper commented 2 years ago

Describe the bug When creating a dataset (probably same for space/collection) and I double click on the create button it will create 2 datasets with the same name but different mongoids. Looking at the timestamp of the mongoids they are created at the same second.

To Reproduce Steps to reproduce the behavior:

  1. click on create dataset
  2. fill out form
  3. double click (quickly) the create button
  4. See error

Expected behavior after first click the button should be grayed out and not receive any more clicks.