Skip to content

Commit

Permalink
Merge pull request #359 from fairdataihub/staging
Browse files Browse the repository at this point in the history
feat: scroll into view for verify files
  • Loading branch information
aaronm-2112 authored Aug 22, 2024
2 parents 0b68a93 + d6bcc68 commit a30904f
Showing 1 changed file with 8 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,10 @@ 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 a30904f

Please sign in to comment.