From d25dcd24e721dfad155b66e6031daa1c0b7abcee Mon Sep 17 00:00:00 2001 From: Stephan Heunis Date: Mon, 25 Sep 2023 13:40:01 +0200 Subject: [PATCH] deactivate automatic tab selection based on tab content; now always set to first tab upon dataset navigation --- .../catalog/assets/app_component_dataset.js | 19 ++++++++++--------- 1 file changed, 10 insertions(+), 9 deletions(-) diff --git a/datalad_catalog/catalog/assets/app_component_dataset.js b/datalad_catalog/catalog/assets/app_component_dataset.js index 1566ad79..8d845bc2 100644 --- a/datalad_catalog/catalog/assets/app_component_dataset.js +++ b/datalad_catalog/catalog/assets/app_component_dataset.js @@ -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() { @@ -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; } } }) \ No newline at end of file