diff --git a/api-catalog-ui/frontend/src/components/Dashboard/Dashboard.jsx b/api-catalog-ui/frontend/src/components/Dashboard/Dashboard.jsx index 2aa466ce10..fccf6e77e7 100644 --- a/api-catalog-ui/frontend/src/components/Dashboard/Dashboard.jsx +++ b/api-catalog-ui/frontend/src/components/Dashboard/Dashboard.jsx @@ -37,6 +37,7 @@ const FeedbackButton = React.lazy(loadFeedbackButton); export default class Dashboard extends Component { componentDidMount() { if (isAPIPortal()) { + document.title = process.env.REACT_APP_API_PORTAL_DASHBOARD_TITLE; const goBackButton = document.getElementById('go-back-button-portal'); if (goBackButton) { goBackButton.style.display = 'none'; diff --git a/api-catalog-ui/frontend/src/components/DetailPage/DetailPage.jsx b/api-catalog-ui/frontend/src/components/DetailPage/DetailPage.jsx index 7453fb37a8..cc43489569 100644 --- a/api-catalog-ui/frontend/src/components/DetailPage/DetailPage.jsx +++ b/api-catalog-ui/frontend/src/components/DetailPage/DetailPage.jsx @@ -44,6 +44,7 @@ export default class DetailPage extends Component { componentDidMount() { if (isAPIPortal()) { + document.title = process.env.REACT_APP_API_PORTAL_SERVICE_TITLE; closeMobileMenu(); const goBackButton = document.getElementById('go-back-button-portal'); if (goBackButton) { diff --git a/api-catalog-ui/frontend/src/components/ServiceTab/ServiceTab.css b/api-catalog-ui/frontend/src/components/ServiceTab/ServiceTab.css index e316906b7d..62746772c0 100644 --- a/api-catalog-ui/frontend/src/components/ServiceTab/ServiceTab.css +++ b/api-catalog-ui/frontend/src/components/ServiceTab/ServiceTab.css @@ -131,3 +131,8 @@ p.MuiTypography-root.version-text.MuiTypography-body1 { #no-tiles-error > p { margin-left: 88px; } + +#single-api-version-label { + margin-left: 5px; + margin-top: 16px; +} diff --git a/api-catalog-ui/frontend/src/components/ServiceTab/ServiceTab.jsx b/api-catalog-ui/frontend/src/components/ServiceTab/ServiceTab.jsx index b839d2fc43..986bb3f3fb 100644 --- a/api-catalog-ui/frontend/src/components/ServiceTab/ServiceTab.jsx +++ b/api-catalog-ui/frontend/src/components/ServiceTab/ServiceTab.jsx @@ -291,23 +291,25 @@ export default class ServiceTab extends Component { Swagger - {containsVersion && currentService && ( - - Service ID and Version: - - )} +
+ {containsVersion && currentService && ( + + Service ID and Version: + + )} + {currentService && apiVersions?.length === 1 && apiVersions[0]?.key && ( + + {apiVersions[0].key} + + )} +
- {currentService && apiVersions?.length > 0 && ( + {currentService && apiVersions?.length > 1 && (