-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
wip: navigation code reorganized - nav entry point moved
- Loading branch information
1 parent
bdbdf7c
commit 7a43e2d
Showing
11 changed files
with
224 additions
and
215 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
src/renderer/src/scripts/guided-mode/pages/curationPreparation/savePage.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
19 changes: 19 additions & 0 deletions
19
src/renderer/src/scripts/guided-mode/pages/datasetStructure/openPage.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
import { guidedSkipPage, guidedUnSkipPage } from "../pageSkipping"; | ||
|
||
export const openPageDatasetStructure = async (targetPageID) => { | ||
if (targetPageID === "guided-dataset-structure-intro-tab") { | ||
// Handle whether or not the spreadsheet importation page should be skipped | ||
// Note: this is done here to centralize the logic for skipping the page | ||
// The page is unskipped only if the user has not added any subjects, | ||
// indicated that they will be adding subjects, and the user is not starting from Pennsieve | ||
if ( | ||
window.getExistingSubjectNames().length === 0 && | ||
window.sodaJSONObj["starting-point"]["type"] != "bf" && | ||
window.sodaJSONObj["button-config"]["dataset-contains-subjects"] === "yes" | ||
) { | ||
guidedUnSkipPage("guided-subject-structure-spreadsheet-importation-tab"); | ||
} else { | ||
guidedSkipPage("guided-subject-structure-spreadsheet-importation-tab"); | ||
} | ||
} | ||
}; |
Oops, something went wrong.