diff options
Diffstat (limited to 'server/sonar-web/src/main/js/components/shared')
-rw-r--r-- | server/sonar-web/src/main/js/components/shared/DrilldownLink.tsx | 6 | ||||
-rw-r--r-- | server/sonar-web/src/main/js/components/shared/__tests__/DrilldownLink-test.tsx | 4 |
2 files changed, 5 insertions, 5 deletions
diff --git a/server/sonar-web/src/main/js/components/shared/DrilldownLink.tsx b/server/sonar-web/src/main/js/components/shared/DrilldownLink.tsx index bd368a08cf7..56ed2212faf 100644 --- a/server/sonar-web/src/main/js/components/shared/DrilldownLink.tsx +++ b/server/sonar-web/src/main/js/components/shared/DrilldownLink.tsx @@ -78,7 +78,7 @@ interface Props { className?: string; component: string; metric: string; - sinceLeakPeriod?: boolean; + inNewCodePeriod?: boolean; } export default class DrilldownLink extends React.PureComponent<Props> { @@ -91,8 +91,8 @@ export default class DrilldownLink extends React.PureComponent<Props> { ...(issueParamsPerMetric[this.props.metric] || { resolved: 'false' }) }; - if (this.props.sinceLeakPeriod) { - params.sinceLeakPeriod = true; + if (this.props.inNewCodePeriod) { + params.inNewCodePeriod = true; } return params; diff --git a/server/sonar-web/src/main/js/components/shared/__tests__/DrilldownLink-test.tsx b/server/sonar-web/src/main/js/components/shared/__tests__/DrilldownLink-test.tsx index 94471a87ad9..4d7e2c2863b 100644 --- a/server/sonar-web/src/main/js/components/shared/__tests__/DrilldownLink-test.tsx +++ b/server/sonar-web/src/main/js/components/shared/__tests__/DrilldownLink-test.tsx @@ -37,10 +37,10 @@ describe('propsToIssueParams', () => { }); it(`should render correct params`, () => { - const wrapper = shallowRender({ metric: 'false_positive_issues', sinceLeakPeriod: true }); + const wrapper = shallowRender({ metric: 'false_positive_issues', inNewCodePeriod: true }); expect(wrapper.instance().propsToIssueParams()).toEqual({ resolutions: 'FALSE-POSITIVE', - sinceLeakPeriod: true + inNewCodePeriod: true }); }); }); |