diff --git a/www/js/upload_dataset.js b/www/js/upload_dataset.js index 957443dc..90c4265c 100644 --- a/www/js/upload_dataset.js +++ b/www/js/upload_dataset.js @@ -51,6 +51,17 @@ window.onload=function() { }); }); + // Add click listeners for submissions-in-progress-table-tbody rows, even if they don't exist yet + document.addEventListener('click', (event) => { + if (event.target.classList.contains('submission-history-row')) { + const share_id = event.target.dataset.shareId; + const step = event.target.dataset.step; + + // Do we want to dynamically load the next step or page refresh for it? + // If dynamic we have to reset all the forms. + } + }); + document.getElementById('metadata-form-submit').addEventListener('click', (event) => { event.preventDefault(); let errored_fields = validateMetadataForm(); @@ -309,7 +320,7 @@ const storeMetadata = async () => { upload_step_marker.classList.add('is-light'); upload_step_icon.firstElementChild.classList.add('mdi-wrench'); - document.getElementById('step-upload-metadata-c').classList.add('is-hidden'); + document.getElementById('step-enter-metadata-c').classList.add('is-hidden'); document.getElementById('step-upload-dataset-c').classList.remove('is-hidden'); // Scroll to the top of the page diff --git a/www/upload_dataset.html b/www/upload_dataset.html index 7d5f1bb9..5874f19e 100644 --- a/www/upload_dataset.html +++ b/www/upload_dataset.html @@ -88,7 +88,7 @@
The 'metadata' is the data describing your dataset, including things like title, authorship, sequencing @@ -757,6 +763,50 @@
+ Your dataset is being processed on the server. This may take a few minutes, depending on the size of the dataset. +
++ You can check the status of the processing below. +
+