Skip to content

Commit

Permalink
feat: scroll verify files into view
Browse files Browse the repository at this point in the history
  • Loading branch information
aaronm-2112 committed Aug 22, 2024
1 parent 50fb01c commit 5db926b
Showing 1 changed file with 9 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,10 @@ let failedFilesPathsList = [];

document.querySelector("#guided--verify-files-button").addEventListener("click", async () => {
document.querySelector("#guided--validate-dataset-upload").classList.remove("hidden");
// scroll to the guided--validate-dataset-upload div
document.querySelector("#guided--validate-dataset-upload").scrollIntoView({
behavior: "smooth",
});

// disable self so verification cannot be re-ran without a retry
document.querySelector("#guided--verify-files-button").disabled = true;
Expand Down Expand Up @@ -43,6 +47,11 @@ document.querySelector("#guided--verify-files-button").addEventListener("click",
return;
}

document.querySelector("#guided-dataset-upload-complete-message").scrollIntoView({
behavior: "smooth",
});


document.querySelector("#guided-next-button").disabled = false;
document.querySelector("#guided-button-save-and-exit").disabled = false;
});
Expand Down

0 comments on commit 5db926b

Please sign in to comment.