aboutsummaryrefslogtreecommitdiffstats
path: root/server/sonar-web/src/main/js/apps/issues/sidebar/SeverityFacet.tsx
diff options
context:
space:
mode:
authorPascal Mugnier <pascal.mugnier@sonarsource.com>2018-04-17 12:11:11 +0200
committerSonarTech <sonartech@sonarsource.com>2018-04-18 20:20:53 +0200
commitd1e95cf62f9b38e7e7df0a5ecc881620298da803 (patch)
tree085f67ac9d9ac8be315ed3af09398f5f813a804d /server/sonar-web/src/main/js/apps/issues/sidebar/SeverityFacet.tsx
parentabcce903fa73b67812b7de04a0414f0ea44b0e58 (diff)
downloadsonarqube-d1e95cf62f9b38e7e7df0a5ecc881620298da803.tar.gz
sonarqube-d1e95cf62f9b38e7e7df0a5ecc881620298da803.zip
SONAR-10050 Switch Issues/Effort in issues page when data is available
Diffstat (limited to 'server/sonar-web/src/main/js/apps/issues/sidebar/SeverityFacet.tsx')
-rw-r--r--server/sonar-web/src/main/js/apps/issues/sidebar/SeverityFacet.tsx2
1 files changed, 2 insertions, 0 deletions
diff --git a/server/sonar-web/src/main/js/apps/issues/sidebar/SeverityFacet.tsx b/server/sonar-web/src/main/js/apps/issues/sidebar/SeverityFacet.tsx
index 6c39c35aa76..9b27208e74c 100644
--- a/server/sonar-web/src/main/js/apps/issues/sidebar/SeverityFacet.tsx
+++ b/server/sonar-web/src/main/js/apps/issues/sidebar/SeverityFacet.tsx
@@ -29,6 +29,7 @@ import { translate } from '../../../helpers/l10n';
interface Props {
facetMode: string;
+ loading?: boolean;
onChange: (changes: Partial<Query>) => void;
onToggle: (property: string) => void;
open: boolean;
@@ -74,6 +75,7 @@ export default class SeverityFacet extends React.PureComponent<Props> {
disabled={stat === 0 && !active}
halfWidth={true}
key={severity}
+ loading={this.props.loading}
name={<SeverityHelper severity={severity} />}
onClick={this.handleItemClick}
stat={formatFacetStat(stat, this.props.facetMode)}