diff options
author | Stanislav <31501873+stanislavhh@users.noreply.github.com> | 2024-09-12 09:23:36 +0200 |
---|---|---|
committer | sonartech <sonartech@sonarsource.com> | 2024-09-12 20:02:53 +0000 |
commit | b135083b243a5543f43b8d81dc2a5c53931fc460 (patch) | |
tree | 55e6ab26275971961103631acce646957e5c28b5 /server/sonar-web/src/main/js/apps | |
parent | bae60bb896fb02d58245889bc896c06b62e96cab (diff) | |
download | sonarqube-b135083b243a5543f43b8d81dc2a5c53931fc460.tar.gz sonarqube-b135083b243a5543f43b8d81dc2a5c53931fc460.zip |
SONAR-22943 Fix portfolio drilldown link to project (#11730)
Diffstat (limited to 'server/sonar-web/src/main/js/apps')
-rw-r--r-- | server/sonar-web/src/main/js/apps/code/components/ComponentName.tsx | 8 | ||||
-rw-r--r-- | server/sonar-web/src/main/js/apps/overview/utils.tsx | 2 |
2 files changed, 6 insertions, 4 deletions
diff --git a/server/sonar-web/src/main/js/apps/code/components/ComponentName.tsx b/server/sonar-web/src/main/js/apps/code/components/ComponentName.tsx index 18ad9680db7..d9f096bdfd6 100644 --- a/server/sonar-web/src/main/js/apps/code/components/ComponentName.tsx +++ b/server/sonar-web/src/main/js/apps/code/components/ComponentName.tsx @@ -68,9 +68,11 @@ export default function ComponentName({ const ariaLabel = unclickable ? translate('code.parent_folder') : undefined; if ( - [ComponentQualifier.Application, ComponentQualifier.Portfolio].includes( - rootComponent.qualifier as ComponentQualifier, - ) && + [ + ComponentQualifier.Application, + ComponentQualifier.Portfolio, + ComponentQualifier.SubPortfolio, + ].includes(rootComponent.qualifier as ComponentQualifier) && [ComponentQualifier.Application, ComponentQualifier.Project].includes( component.qualifier as ComponentQualifier, ) diff --git a/server/sonar-web/src/main/js/apps/overview/utils.tsx b/server/sonar-web/src/main/js/apps/overview/utils.tsx index 7e34977780e..fa7e2786ea5 100644 --- a/server/sonar-web/src/main/js/apps/overview/utils.tsx +++ b/server/sonar-web/src/main/js/apps/overview/utils.tsx @@ -214,7 +214,7 @@ export function getMeasurementMetricKey(type: MeasurementType, useDiffMetric: bo export const parseQuery = memoize((urlQuery: RawQuery): { codeScope: string } => { return { - codeScope: parseAsString(urlQuery['code_scope']), + codeScope: parseAsString(urlQuery['codeScope']), }; }); |