Sfoglia il codice sorgente

SONAR-16703 [891676] Multiple links have the same programmatic link text but different destinations

tags/9.6.0.59041
Wouter Admiraal 1 anno fa
parent
commit
e2881b420e

+ 10
- 1
server/sonar-web/src/main/js/app/components/nav/component/projectInformation/meta/MetaQualityProfiles.tsx Vedi File

@@ -95,7 +95,16 @@ export class MetaQualityProfiles extends React.PureComponent<Props, State> {
{profile.deleted ? (
profile.name
) : (
<Link to={getQualityProfileUrl(profile.name, profile.language)}>{profile.name}</Link>
<Link to={getQualityProfileUrl(profile.name, profile.language)}>
<span
aria-label={translateWithParameters(
'overview.link_to_x_profile_y',
languageName,
profile.name
)}>
{profile.name}
</span>
</Link>
)}
</div>
);

+ 10
- 2
server/sonar-web/src/main/js/app/components/nav/component/projectInformation/meta/__tests__/__snapshots__/MetaQualityProfiles-test.tsx.snap Vedi File

@@ -50,7 +50,11 @@ exports[`should render correctly 1`] = `
}
}
>
name
<span
aria-label="overview.link_to_x_profile_y.CSS.name"
>
name
</span>
</Link>
</div>
</li>
@@ -112,7 +116,11 @@ exports[`should render correctly 2`] = `
}
}
>
name
<span
aria-label="overview.link_to_x_profile_y.CSS.name"
>
name
</span>
</Link>
</div>
</li>

+ 1
- 0
sonar-core/src/main/resources/org/sonar/l10n/core.properties Vedi File

@@ -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

Loading…
Annulla
Salva