diff options
author | Stas Vilchik <stas.vilchik@sonarsource.com> | 2018-08-14 16:43:17 +0200 |
---|---|---|
committer | SonarTech <sonartech@sonarsource.com> | 2018-08-21 20:21:02 +0200 |
commit | d4fa9a5eec91b3cc36a7ac6b0b1c0ff3359162d9 (patch) | |
tree | 20aefaf5d526b5a1dda744cf9297605d6c04beec /server/sonar-web/src/main/js/apps/issues/components/PageActions.tsx | |
parent | 63055cd49b4053c4f99949f505f6ce1214cb4135 (diff) | |
download | sonarqube-d4fa9a5eec91b3cc36a7ac6b0b1c0ff3359162d9.tar.gz sonarqube-d4fa9a5eec91b3cc36a7ac6b0b1c0ff3359162d9.zip |
SONAR-10997 display the total effort on the issues page (#615)
Diffstat (limited to 'server/sonar-web/src/main/js/apps/issues/components/PageActions.tsx')
-rw-r--r-- | server/sonar-web/src/main/js/apps/issues/components/PageActions.tsx | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/server/sonar-web/src/main/js/apps/issues/components/PageActions.tsx b/server/sonar-web/src/main/js/apps/issues/components/PageActions.tsx index 1850b50dbda..31eb0f06472 100644 --- a/server/sonar-web/src/main/js/apps/issues/components/PageActions.tsx +++ b/server/sonar-web/src/main/js/apps/issues/components/PageActions.tsx @@ -19,6 +19,7 @@ */ import * as React from 'react'; import IssuesCounter from './IssuesCounter'; +import TotalEffort from './TotalEffort'; import { HomePageType, Paging } from '../../../app/types'; import HomePageSelect from '../../../components/controls/HomePageSelect'; import ReloadButton from '../../../components/controls/ReloadButton'; @@ -27,6 +28,7 @@ import { isSonarCloud } from '../../../helpers/system'; interface Props { canSetHome: boolean; + effortTotal: number | undefined; onReload: () => void; paging: Paging | undefined; selectedIndex: number | undefined; @@ -52,7 +54,7 @@ export default class PageActions extends React.PureComponent<Props> { } render() { - const { paging, selectedIndex } = this.props; + const { effortTotal, paging, selectedIndex } = this.props; return ( <div className="pull-right"> @@ -63,6 +65,7 @@ export default class PageActions extends React.PureComponent<Props> { {paging != null && ( <IssuesCounter className="spacer-left" current={selectedIndex} total={paging.total} /> )} + {effortTotal !== undefined && <TotalEffort effort={effortTotal} />} </div> {this.props.canSetHome && ( |