-
-
Notifications
You must be signed in to change notification settings - Fork 349
feat: Add option to hide clinical data tab in study view #5273
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -190,4 +190,7 @@ export interface IServerConfig { | |
| clickhouse_mode: boolean; | ||
| download_custom_buttons_json: string; | ||
| feature_study_export: boolean; | ||
| skin?: { | ||
|
Collaborator
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. we have a convention above that dot notation gets converted to _. lets keep that
Collaborator
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. if you test it this, the backend should automatically convert the dot notation. so i would think this wouldn't work. let me know if you need hlep testing this |
||
| hide_clinical_data_tab_study_view?: boolean; | ||
| }; | ||
| } | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -351,6 +351,11 @@ export function initializeServerConfiguration(rawConfiguration: any) { | |
| } | ||
| } | ||
|
|
||
| let portalProperties: any = {}; | ||
|
Collaborator
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. what's this for? |
||
| if (typeof window !== 'undefined' && (window as any).portalProperties) { | ||
| portalProperties = (window as any).portalProperties; | ||
| } | ||
|
|
||
| // this establishes the order of precedence of configuration | ||
| // the override each other in the following order | ||
| // Note: server config defaults will only be applied where properties | ||
|
|
@@ -360,7 +365,8 @@ export function initializeServerConfiguration(rawConfiguration: any) { | |
| ServerConfigDefaults, | ||
| rawConfiguration, | ||
| frontendOverride, | ||
| localStorageOverride.serverConfig | ||
| localStorageOverride.serverConfig, | ||
| portalProperties | ||
| ); | ||
|
|
||
| // apply custom corrections for deprecated | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
is this for testing purposes?