From: Grégoire Aubert Date: Mon, 28 May 2018 13:43:24 +0000 (+0200) Subject: SONAR-10703 Add the current edition in the footer X-Git-Tag: 7.5~1037 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=aaa7d9450fdcbd5cbed48e64bfb2c3e1befb0ffa;p=sonarqube.git SONAR-10703 Add the current edition in the footer --- diff --git a/server/sonar-web/src/main/js/app/components/GlobalFooter.tsx b/server/sonar-web/src/main/js/app/components/GlobalFooter.tsx index 63e5ee4eab5..363102ff653 100644 --- a/server/sonar-web/src/main/js/app/components/GlobalFooter.tsx +++ b/server/sonar-web/src/main/js/app/components/GlobalFooter.tsx @@ -22,12 +22,14 @@ import { Link } from 'react-router'; import GlobalFooterSonarCloud from './GlobalFooterSonarCloud'; import GlobalFooterBranding from './GlobalFooterBranding'; import InstanceMessage from '../../components/common/InstanceMessage'; +import { EDITIONS } from '../../apps/marketplace/utils'; import { translate, translateWithParameters } from '../../helpers/l10n'; import { isSonarCloud } from '../../helpers/system'; interface Props { hideLoggedInInfo?: boolean; productionDatabase: boolean; + sonarqubeEdition: string; sonarqubeVersion?: string; } @@ -40,6 +42,8 @@ export default function GlobalFooter({ return ; } + const currentEdition = EDITIONS.find(edition => edition.key === sonarqubeEdition); + return (