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,
)
export const parseQuery = memoize((urlQuery: RawQuery): { codeScope: string } => {
return {
- codeScope: parseAsString(urlQuery['code_scope']),
+ codeScope: parseAsString(urlQuery['codeScope']),
};
});
).toEqual(
expect.objectContaining({
pathname: '/dashboard',
- search: queryToSearchString({ id: SIMPLE_COMPONENT_KEY, code_scope: 'new' }),
+ search: queryToSearchString({ id: SIMPLE_COMPONENT_KEY, codeScope: 'new' }),
}),
);
});
).toEqual(
expect.objectContaining({
pathname: '/dashboard',
- search: queryToSearchString({ id: SIMPLE_COMPONENT_KEY, code_scope: 'overall' }),
+ search: queryToSearchString({ id: SIMPLE_COMPONENT_KEY, codeScope: 'overall' }),
}),
);
});
search: queryToSearchString({
id: project,
branch,
- ...(codeScope && { code_scope: codeScope }),
+ ...(codeScope && { codeScope }),
}),
};
}
search: queryToSearchString({
id: project,
...branchParameters,
- ...(codeScope && { code_scope: codeScope }),
+ ...(codeScope && { codeScope }),
}),
};
}