diff options
author | Pascal Mugnier <pascal.mugnier@sonarsource.com> | 2018-04-19 10:10:23 +0200 |
---|---|---|
committer | SonarTech <sonartech@sonarsource.com> | 2018-04-24 20:20:46 +0200 |
commit | fd961a51b94ebcc2811e833a683ca2a538cace02 (patch) | |
tree | f6d9c744fd38955956cfbb18370301322aa259b1 /server/sonar-web/src/main/js/apps/overview/components/OverviewApp.tsx | |
parent | 13fa00a308984cd58ec86b380addb23b6ecfe0d5 (diff) | |
download | sonarqube-fd961a51b94ebcc2811e833a683ca2a538cace02.tar.gz sonarqube-fd961a51b94ebcc2811e833a683ca2a538cace02.zip |
SONAR-10606 If a project has no analysis, it displays the wrong message
Diffstat (limited to 'server/sonar-web/src/main/js/apps/overview/components/OverviewApp.tsx')
-rw-r--r-- | server/sonar-web/src/main/js/apps/overview/components/OverviewApp.tsx | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/server/sonar-web/src/main/js/apps/overview/components/OverviewApp.tsx b/server/sonar-web/src/main/js/apps/overview/components/OverviewApp.tsx index 03d85648299..ff2bff3aa8c 100644 --- a/server/sonar-web/src/main/js/apps/overview/components/OverviewApp.tsx +++ b/server/sonar-web/src/main/js/apps/overview/components/OverviewApp.tsx @@ -174,13 +174,17 @@ export class OverviewApp extends React.PureComponent<Props, State> { } renderEmpty() { + const { component } = this.props; + const isProject = component.qualifier === 'TRK'; return ( <div className="overview-main page-main"> <h3> {!this.state.measures || !this.state.measures.find(measure => measure.metric.key === 'projects') - ? translate('portfolio.app.empty') - : translate('portfolio.app.no_lines_of_code')} + ? translate(isProject ? 'overview.project.empty' : 'portfolio.app.empty') + : translate( + isProject ? 'overview.project.no_lines_of_code' : 'portfolio.app.no_lines_of_code' + )} </h3> </div> ); |