From e2881b420e554c498072230e2255ad6e9e5336ec Mon Sep 17 00:00:00 2001 From: Wouter Admiraal Date: Tue, 26 Jul 2022 14:22:41 +0200 Subject: [PATCH] SONAR-16703 [891676] Multiple links have the same programmatic link text but different destinations --- .../projectInformation/meta/MetaQualityProfiles.tsx | 11 ++++++++++- .../__snapshots__/MetaQualityProfiles-test.tsx.snap | 12 ++++++++++-- .../main/resources/org/sonar/l10n/core.properties | 1 + 3 files changed, 21 insertions(+), 3 deletions(-) diff --git a/server/sonar-web/src/main/js/app/components/nav/component/projectInformation/meta/MetaQualityProfiles.tsx b/server/sonar-web/src/main/js/app/components/nav/component/projectInformation/meta/MetaQualityProfiles.tsx index de1836db9fe..8b2c6610232 100644 --- a/server/sonar-web/src/main/js/app/components/nav/component/projectInformation/meta/MetaQualityProfiles.tsx +++ b/server/sonar-web/src/main/js/app/components/nav/component/projectInformation/meta/MetaQualityProfiles.tsx @@ -95,7 +95,16 @@ export class MetaQualityProfiles extends React.PureComponent { {profile.deleted ? ( profile.name ) : ( - {profile.name} + + + {profile.name} + + )} ); diff --git a/server/sonar-web/src/main/js/app/components/nav/component/projectInformation/meta/__tests__/__snapshots__/MetaQualityProfiles-test.tsx.snap b/server/sonar-web/src/main/js/app/components/nav/component/projectInformation/meta/__tests__/__snapshots__/MetaQualityProfiles-test.tsx.snap index 3f7561213ee..7c3bbe1d70a 100644 --- a/server/sonar-web/src/main/js/app/components/nav/component/projectInformation/meta/__tests__/__snapshots__/MetaQualityProfiles-test.tsx.snap +++ b/server/sonar-web/src/main/js/app/components/nav/component/projectInformation/meta/__tests__/__snapshots__/MetaQualityProfiles-test.tsx.snap @@ -50,7 +50,11 @@ exports[`should render correctly 1`] = ` } } > - name + + name + @@ -112,7 +116,11 @@ exports[`should render correctly 2`] = ` } } > - name + + name + diff --git a/sonar-core/src/main/resources/org/sonar/l10n/core.properties b/sonar-core/src/main/resources/org/sonar/l10n/core.properties index ae9103dc034..744b543192d 100644 --- a/sonar-core/src/main/resources/org/sonar/l10n/core.properties +++ b/sonar-core/src/main/resources/org/sonar/l10n/core.properties @@ -3180,6 +3180,7 @@ overview.complexity_tooltip.file={0} files have complexity around {1} overview.deprecated_profile=This Quality Profile uses {0} deprecated rules and should be updated. overview.deleted_profile={0} has been deleted since the last analysis. +overview.link_to_x_profile_y=Go to {0} profile "{1}" overview.badges.get_badge.TRK=Get project badges overview.badges.get_badge.VW=Get portfolio badges -- 2.39.5