From 06b63c4b8f9532bd5bab3504a49fa70b629ab274 Mon Sep 17 00:00:00 2001 From: Stas Vilchik Date: Wed, 17 Feb 2016 09:06:13 +0100 Subject: [PATCH] SONAR-7191 fix backrgound tasks page --- .../apps/background-tasks/components/{header.js => Header.js} | 0 .../src/main/js/apps/background-tasks/components/stats.js | 2 +- .../main/js/apps/background-tasks/containers/StatsContainer.js | 3 ++- 3 files changed, 3 insertions(+), 2 deletions(-) rename server/sonar-web/src/main/js/apps/background-tasks/components/{header.js => Header.js} (100%) diff --git a/server/sonar-web/src/main/js/apps/background-tasks/components/header.js b/server/sonar-web/src/main/js/apps/background-tasks/components/Header.js similarity index 100% rename from server/sonar-web/src/main/js/apps/background-tasks/components/header.js rename to server/sonar-web/src/main/js/apps/background-tasks/components/Header.js diff --git a/server/sonar-web/src/main/js/apps/background-tasks/components/stats.js b/server/sonar-web/src/main/js/apps/background-tasks/components/stats.js index d59e40bf0ef..2fc18a7bd75 100644 --- a/server/sonar-web/src/main/js/apps/background-tasks/components/stats.js +++ b/server/sonar-web/src/main/js/apps/background-tasks/components/stats.js @@ -90,7 +90,7 @@ export default class Stats extends Component { return null; } - if (this.props.options && this.props.options.component) { + if (this.props.component) { return null; } diff --git a/server/sonar-web/src/main/js/apps/background-tasks/containers/StatsContainer.js b/server/sonar-web/src/main/js/apps/background-tasks/containers/StatsContainer.js index f1828926628..86fa2952825 100644 --- a/server/sonar-web/src/main/js/apps/background-tasks/containers/StatsContainer.js +++ b/server/sonar-web/src/main/js/apps/background-tasks/containers/StatsContainer.js @@ -27,7 +27,8 @@ function mapStateToProps (state) { return { pendingCount: state.pendingCount, failingCount: state.failingCount, - inProgressDuration: state.inProgressDuration + inProgressDuration: state.inProgressDuration, + component: state.component }; } -- 2.39.5