aboutsummaryrefslogtreecommitdiffstats
path: root/server/sonar-web/src/main/js/components/shared/AppVersionStatus.tsx
diff options
context:
space:
mode:
Diffstat (limited to 'server/sonar-web/src/main/js/components/shared/AppVersionStatus.tsx')
-rw-r--r--server/sonar-web/src/main/js/components/shared/AppVersionStatus.tsx5
1 files changed, 3 insertions, 2 deletions
diff --git a/server/sonar-web/src/main/js/components/shared/AppVersionStatus.tsx b/server/sonar-web/src/main/js/components/shared/AppVersionStatus.tsx
index 8b9452fe2ff..bd481c9c061 100644
--- a/server/sonar-web/src/main/js/components/shared/AppVersionStatus.tsx
+++ b/server/sonar-web/src/main/js/components/shared/AppVersionStatus.tsx
@@ -27,10 +27,11 @@ import { useDocUrl } from '../../helpers/docs';
import { getInstanceVersionNumber } from '../../helpers/strings';
import { isCurrentVersionEOLActive } from '../../helpers/system';
import { useSystemUpgrades } from '../../queries/system';
+import { EditionKey } from '../../types/editions';
export default function AppVersionStatus() {
const { data } = useSystemUpgrades();
- const { version, versionEOL } = useAppState();
+ const { edition, version, versionEOL } = useAppState();
const isActiveVersion = useMemo(() => {
if (data?.installedVersionActive !== undefined) {
@@ -47,7 +48,7 @@ export default function AppVersionStatus() {
{ id: `footer.version` },
{
version: getInstanceVersionNumber(version),
- status: (
+ status: edition && edition !== EditionKey.community && (
<LinkStandalone className="sw-ml-1" highlight={LinkHighlight.CurrentColor} to={docUrl}>
<FormattedMessage
id={`footer.version.status.${isActiveVersion ? 'active' : 'inactive'}`}