Skip to content

Commit

Permalink
add donate button (#5065)
Browse files Browse the repository at this point in the history
* add donate button
  • Loading branch information
inodb authored Dec 13, 2024
1 parent 8987b96 commit 0533970
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/appShell/App/PortalHeader.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,14 @@ export default class PortalHeader extends React.Component<
internal: false,
hide: () => !getServerConfig().installation_map_url,
},

{
id: 'donate',
text: 'Donate',
address: 'https://docs.cbioportal.org/donate/',
internal: false,
hide: () => !getServerConfig().skin_show_donate_button === true,
},
];
}

Expand Down
1 change: 1 addition & 0 deletions src/config/IAppConfig.ts
Original file line number Diff line number Diff line change
Expand Up @@ -120,6 +120,7 @@ export interface IServerConfig {
skin_show_tutorials_tab: boolean;
skin_show_web_api_tab: boolean;
skin_show_tweet_button: boolean;
skin_show_donate_button: boolean;
skin_show_tissue_image_tab: boolean;
skin_hide_logout_button: boolean;
skin_show_settings_menu: boolean;
Expand Down

0 comments on commit 0533970

Please sign in to comment.