aboutsummaryrefslogtreecommitdiffstats
path: root/server/sonar-web/src/main/js/apps/projectActivity/components/GraphsHistory.js
diff options
context:
space:
mode:
Diffstat (limited to 'server/sonar-web/src/main/js/apps/projectActivity/components/GraphsHistory.js')
-rw-r--r--server/sonar-web/src/main/js/apps/projectActivity/components/GraphsHistory.js7
1 files changed, 4 insertions, 3 deletions
diff --git a/server/sonar-web/src/main/js/apps/projectActivity/components/GraphsHistory.js b/server/sonar-web/src/main/js/apps/projectActivity/components/GraphsHistory.js
index 25247318719..4e5be7ea5db 100644
--- a/server/sonar-web/src/main/js/apps/projectActivity/components/GraphsHistory.js
+++ b/server/sonar-web/src/main/js/apps/projectActivity/components/GraphsHistory.js
@@ -20,6 +20,7 @@
import React from 'react';
import moment from 'moment';
import { isEqual, sortBy } from 'lodash';
+import DeferredSpinner from '../../../components/common/DeferredSpinner';
import GraphHistory from './GraphHistory';
import { EVENT_TYPES, getSeriesMetricType, hasHistoryData, isCustomGraph } from '../utils';
import { translate } from '../../../helpers/l10n';
@@ -109,14 +110,14 @@ export default class GraphsHistory extends React.PureComponent {
updateTooltip = (selectedDate /*: ?Date */) => this.setState({ selectedDate });
render() {
- const { graph, series } = this.props;
+ const { graph, loading, series } = this.props;
const isCustom = isCustomGraph(graph);
- if (this.props.loading) {
+ if (loading) {
return (
<div className="project-activity-graph-container">
<div className="text-center">
- <i className="spinner" />
+ <DeferredSpinner className="" loading={loading} />
</div>
</div>
);