Skip to content

Commit

Permalink
deactivate automatic tab selection based on tab content; now always s…
Browse files Browse the repository at this point in the history
…et to first tab upon dataset navigation
  • Loading branch information
jsheunis committed Sep 25, 2023
1 parent 2d9847e commit d25dcd2
Showing 1 changed file with 10 additions and 9 deletions.
19 changes: 10 additions & 9 deletions datalad_catalog/catalog/assets/app_component_dataset.js
Original file line number Diff line number Diff line change
Expand Up @@ -629,11 +629,11 @@ const datasetView = () =>
else {
this.$root.selectedDataset.has_files = false;
}
// now set the correct tab:
this.setCorrectTab(
this.$root.selectedDataset.has_subdatasets,
this.$root.selectedDataset.has_files
)
// // now set the correct tab:
// this.setCorrectTab(
// this.$root.selectedDataset.has_subdatasets,
// this.$root.selectedDataset.has_files
// )
next();
},
async created() {
Expand Down Expand Up @@ -717,14 +717,15 @@ const datasetView = () =>
else {
this.$root.selectedDataset.has_files = false;
}
this.setCorrectTab(
this.$root.selectedDataset.has_subdatasets,
this.$root.selectedDataset.has_files
)
// this.setCorrectTab(
// this.$root.selectedDataset.has_subdatasets,
// this.$root.selectedDataset.has_files
// )
},
mounted() {
this.tag_options_filtered = this.tag_options;
this.tag_options_available = this.tag_options;
this.tabIndex = 0;
}
}
})

0 comments on commit d25dcd2

Please # to comment.