Skip to content

Commit

Permalink
style: 🎨 fix code style issues with Prettier
Browse files Browse the repository at this point in the history
  • Loading branch information
fairdataihub-bot committed Aug 16, 2023
1 parent 49fc96b commit 8f8c29f
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 11 deletions.
18 changes: 11 additions & 7 deletions scripts/validator/validate.js
Original file line number Diff line number Diff line change
Expand Up @@ -203,7 +203,7 @@ const validateLocalDataset = async () => {
"Number of Files",
file_counter
);
// hide the validation question
// hide the validation question
$("#validate_dataset-question-4").removeClass("show");

if (error.response && (error.response.status == 503 || error.response.status == 502)) {
Expand Down Expand Up @@ -449,7 +449,7 @@ const validatePennsieveDatasetStandAlone = async () => {
file_counter = 0;
folder_counter = 0;
get_num_files_and_folders(localSodaJSONObj["dataset-structure"]);
// hide the validation question
// hide the validation question
$("#validate_dataset-question-4").removeClass("show");
// log successful validation run to analytics
ipcRenderer.send(
Expand Down Expand Up @@ -904,7 +904,7 @@ document.querySelector("#validate-local-dataset-path").addEventListener("click",

// start dataset validation
document.querySelector("#run_validator_btn").addEventListener("click", async function (evt) {
console.log(evt)
console.log(evt);
// check if validating a local or pennsieve dataset
let localDatasetCard = document.querySelector("#validate-1-Local");
let validatingLocalDataset = localDatasetCard.checked;
Expand Down Expand Up @@ -937,12 +937,16 @@ document.querySelector("#run_validator_btn").addEventListener("click", async fun
await validatePennsieveDatasetStandAlone();
}

if( getValidationResultsCount() > 0) {
transitionFreeFormMode(this, 'validate_dataset-question-3', 'validate_dataset-tab', '', 'individual-question validate_dataset')
if (getValidationResultsCount() > 0) {
transitionFreeFormMode(
this,
"validate_dataset-question-3",
"validate_dataset-tab",
"",
"individual-question validate_dataset"
);
scrollToElement("#validation-errors-container");
}


});

// observer for the selected dataset label in the dataset selection card in question 2
Expand Down
6 changes: 2 additions & 4 deletions scripts/validator/validator-UI.js
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,6 @@ document.querySelector("#validate_dataset-1-local").addEventListener("click", as
// reset validation table
clearValidationResults();


// transition to the next question - uses transitionToValidateQuestionTwo
transitionFreeFormMode(
document.querySelector("#validate_dataset-1-local"),
Expand Down Expand Up @@ -211,16 +210,15 @@ document.querySelector("#run_validator_btn").addEventListener("click", async (ev
let localDatasetCard = document.querySelector("#validate-1-Local");
let validatingLocalDataset = localDatasetCard.checked;

console.log("Logic here being performed?")
console.log("Logic here being performed?");

if (validatingLocalDataset) {
await validateLocalDataset();
} else {
await validatePennsieveDataset();
}

console.log("About to do transition logic")

console.log("About to do transition logic");
});

document
Expand Down

0 comments on commit 8f8c29f

Please sign in to comment.