Skip to content

Commit

Permalink
Added hideGroupsTab to cohort config
Browse files Browse the repository at this point in the history
  • Loading branch information
airenzp authored and siosonel committed Sep 17, 2024
1 parent ccad951 commit 1d3daed
Showing 3 changed files with 4 additions and 1 deletion.
1 change: 1 addition & 0 deletions client/mass/nav.js
Original file line number Diff line number Diff line change
@@ -277,6 +277,7 @@ function setRenderers(self) {
})

self.tabs = [chartTab, groupsTab, filterTab /*, cartTab*/]
if (appState.termdbConfig.hideGroupsTab) self.tabs.splice(1, 1)
/** Adds either the COHORT or ABOUT tab
* COHORT is added over ABOUT if both are defined
*/
3 changes: 2 additions & 1 deletion server/routes/termdb.config.ts
Original file line number Diff line number Diff line change
@@ -90,7 +90,8 @@ function make(q, res, ds: Mds3WithCohort, genome) {
isGeneSetTermdb: tdb.isGeneSetTermdb,
lollipop: tdb.lollipop,
urlTemplates: tdb.urlTemplates,
title: 'title' in ds.cohort ? ds.cohort.title : { text: ds.label }
title: 'title' in ds.cohort ? ds.cohort.title : { text: ds.label },
hideGroupsTab: ds.cohort.hideGroupsTab
}
// optional attributes
// when missing, the attribute will not be present as "key:undefined"
1 change: 1 addition & 0 deletions server/shared/types/dataset.ts
Original file line number Diff line number Diff line change
@@ -1047,6 +1047,7 @@ type AssayAvailability = {

//Shared with genome.ts
export type Cohort = {
hideGroupsTab?: boolean
allowedChartTypes?: string[]
hiddenChartTypes?: string[]
renamedChartTypes?: { singleCellPlot?: string; sampleScatter?: string }

0 comments on commit 1d3daed

Please sign in to comment.