diff --git a/src/js/components/Search/SearchResultsPane.tsx b/src/js/components/Search/SearchResultsPane.tsx index 0f48de4b..0727e59b 100644 --- a/src/js/components/Search/SearchResultsPane.tsx +++ b/src/js/components/Search/SearchResultsPane.tsx @@ -3,7 +3,7 @@ import { Button, Card, Col, Row, Table, type TableColumnsType, type TableProps, import { ExportOutlined, LeftOutlined } from '@ant-design/icons'; import { PieChart } from 'bento-charts'; -import { PORTAL_URL } from '@/config'; +import { PORTAL_URL, SHOW_PORTAL_LINK } from '@/config'; import { T_PLURAL_COUNT } from '@/constants/i18n'; import { BOX_SHADOW, PIE_CHART_HEIGHT } from '@/constants/overviewConstants'; import { useTranslationFn } from '@/hooks'; @@ -52,12 +52,16 @@ const SearchResultsPane = ({ // TODO: implement these when we have this information in search results: // ...(!selectedScope.scope.project ? [{ title: 'Project', key: 'project' }] : []), // ...(!selectedScope.scope.dataset ? [{ title: 'Dataset', key: 'dataset' }] : []), - { - title: '', - key: 'actions', - width: 32, - render: ({ id }) => , - }, + ...(SHOW_PORTAL_LINK + ? ([ + { + title: '', + key: 'actions', + width: 32, + render: ({ id }) => , + }, + ] as TableColumnsType) + : []), ], [] ); diff --git a/src/js/components/SiteHeader.tsx b/src/js/components/SiteHeader.tsx index 562e0081..78bd903b 100644 --- a/src/js/components/SiteHeader.tsx +++ b/src/js/components/SiteHeader.tsx @@ -33,7 +33,7 @@ const SiteHeader = () => { const performSignOut = usePerformSignOut(); const performSignIn = usePerformAuth(); - document.title = CLIENT_NAME && CLIENT_NAME.trim() ? `Bento: ${CLIENT_NAME}` : 'Bento'; + document.title = CLIENT_NAME && CLIENT_NAME.trim() ? t(CLIENT_NAME) : 'Bento'; const changeLanguage = () => { const newLang = LNG_CHANGE[i18n.language]; @@ -49,6 +49,7 @@ const SiteHeader = () => { [navigate, i18n.language, scopeObj] ); + // TODO: make branding height configurable return (