Skip to content

Commit

Permalink
wip: cloud ui - skip pennsieve prep steps if cloud or local
Browse files Browse the repository at this point in the history
  • Loading branch information
aaronm-2112 committed Jan 15, 2025
1 parent 745f558 commit 0f238f6
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 0 deletions.
11 changes: 11 additions & 0 deletions src/renderer/src/scripts/guided-mode/guided-curate-dataset.js
Original file line number Diff line number Diff line change
Expand Up @@ -990,6 +990,17 @@ const savePageChanges = async (pageBeingLeftID) => {
// TODO: Store the dataset standard information somewhere and have it play a part in future questions, perhaps.
}

if (pageBeingLeftID === "guided-select-destination-tab") {
const isPennsieveDestinationSelected = document
.getElementById("guided-button-generate-pennsieve-folder")
.classList.contains("selected");
if (!isPennsieveDestinationSelected) {
guidedSkipPage("guided-prepare-helpers-tab");
} else {
guidedUnSkipPage("guided-prepare-helpers-tab");
}
}

if (pageBeingLeftID === "guided-ask-if-submission-is-sparc-funded-tab") {
// NOTE: We use the button config generated by this page to determine if the dataset is SPARC funded
// See the function: datasetIsSparcFunded()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -156,6 +156,7 @@ <h2 class="wide-card-title-text">Upload Aligned Dataset</h2>
<div class="guided--capsule" id="guided-select-starting-point-capsule"></div>
<div class="guided--capsule" id="guided-curation-preparation-intro-capsule"></div>
<div class="guided--capsule" id="guided-ask-if-submission-is-sparc-funded-capsule"></div>
<div class="guided--capsule" id="guided-select-destination-capsule"></div>
<div class="guided--capsule" id="guided-prepare-helpers-capsule"></div>
<div class="guided--capsule" id="guided-prepare-dataset-structure-capsule"></div>
<div class="guided--capsule" id="guided-name-subtitle-capsule"></div>
Expand Down

0 comments on commit 0f238f6

Please sign in to comment.