diff options
author | Stas Vilchik <stas.vilchik@sonarsource.com> | 2017-10-10 14:48:54 +0200 |
---|---|---|
committer | Stas Vilchik <stas.vilchik@sonarsource.com> | 2017-10-11 12:02:21 +0200 |
commit | 508a1d7944f43fcace900993f25bccf7f70110e9 (patch) | |
tree | 3f737a806128ab3ad6e305ba2c073d18603330b4 /server/sonar-web/src/main/js/apps/issues/sidebar | |
parent | 5a1bf49ac17f4936a09efc0adf26b7622c7cbd4a (diff) | |
download | sonarqube-508a1d7944f43fcace900993f25bccf7f70110e9.tar.gz sonarqube-508a1d7944f43fcace900993f25bccf7f70110e9.zip |
SONAR-9777 Open severity facet and close resolutions facet by default
Diffstat (limited to 'server/sonar-web/src/main/js/apps/issues/sidebar')
-rw-r--r-- | server/sonar-web/src/main/js/apps/issues/sidebar/Sidebar.js | 16 | ||||
-rw-r--r-- | server/sonar-web/src/main/js/apps/issues/sidebar/__tests__/__snapshots__/Sidebar-test.js.snap | 12 |
2 files changed, 14 insertions, 14 deletions
diff --git a/server/sonar-web/src/main/js/apps/issues/sidebar/Sidebar.js b/server/sonar-web/src/main/js/apps/issues/sidebar/Sidebar.js index 0cf7de366c9..d1f77a79202 100644 --- a/server/sonar-web/src/main/js/apps/issues/sidebar/Sidebar.js +++ b/server/sonar-web/src/main/js/apps/issues/sidebar/Sidebar.js @@ -84,6 +84,14 @@ export default class Sidebar extends React.PureComponent { stats={facets.types} types={query.types} /> + <SeverityFacet + facetMode={query.facetMode} + onChange={this.props.onFilterChange} + onToggle={this.props.onFacetToggle} + open={!!openFacets.severities} + severities={query.severities} + stats={facets.severities} + /> <ResolutionFacet facetMode={query.facetMode} onChange={this.props.onFilterChange} @@ -93,14 +101,6 @@ export default class Sidebar extends React.PureComponent { resolutions={query.resolutions} stats={facets.resolutions} /> - <SeverityFacet - facetMode={query.facetMode} - onChange={this.props.onFilterChange} - onToggle={this.props.onFacetToggle} - open={!!openFacets.severities} - severities={query.severities} - stats={facets.severities} - /> <StatusFacet facetMode={query.facetMode} onChange={this.props.onFilterChange} diff --git a/server/sonar-web/src/main/js/apps/issues/sidebar/__tests__/__snapshots__/Sidebar-test.js.snap b/server/sonar-web/src/main/js/apps/issues/sidebar/__tests__/__snapshots__/Sidebar-test.js.snap index 12c174f551e..5cfa13f972f 100644 --- a/server/sonar-web/src/main/js/apps/issues/sidebar/__tests__/__snapshots__/Sidebar-test.js.snap +++ b/server/sonar-web/src/main/js/apps/issues/sidebar/__tests__/__snapshots__/Sidebar-test.js.snap @@ -4,8 +4,8 @@ exports[`should render facets for developer 1`] = ` Array [ "FacetMode", "TypeFacet", - "ResolutionFacet", "SeverityFacet", + "ResolutionFacet", "StatusFacet", "CreationDateFacet", "RuleFacet", @@ -23,8 +23,8 @@ exports[`should render facets for directory 1`] = ` Array [ "FacetMode", "TypeFacet", - "ResolutionFacet", "SeverityFacet", + "ResolutionFacet", "StatusFacet", "CreationDateFacet", "RuleFacet", @@ -40,8 +40,8 @@ exports[`should render facets for global page 1`] = ` Array [ "FacetMode", "TypeFacet", - "ResolutionFacet", "SeverityFacet", + "ResolutionFacet", "StatusFacet", "CreationDateFacet", "RuleFacet", @@ -57,8 +57,8 @@ exports[`should render facets for module 1`] = ` Array [ "FacetMode", "TypeFacet", - "ResolutionFacet", "SeverityFacet", + "ResolutionFacet", "StatusFacet", "CreationDateFacet", "RuleFacet", @@ -76,8 +76,8 @@ exports[`should render facets for project 1`] = ` Array [ "FacetMode", "TypeFacet", - "ResolutionFacet", "SeverityFacet", + "ResolutionFacet", "StatusFacet", "CreationDateFacet", "RuleFacet", @@ -95,8 +95,8 @@ exports[`should render facets when my issues are selected 1`] = ` Array [ "FacetMode", "TypeFacet", - "ResolutionFacet", "SeverityFacet", + "ResolutionFacet", "StatusFacet", "CreationDateFacet", "RuleFacet", |