From b540193bb7f1b813771c22d81fe5ebdb6c34c2c9 Mon Sep 17 00:00:00 2001 From: Wouter Admiraal Date: Tue, 22 Dec 2020 15:37:26 +0100 Subject: [PATCH] SONAR-12407 Do not disable facets with 0 results --- .../src/main/js/apps/coding-rules/components/Facet.tsx | 1 - .../src/main/js/apps/issues/sidebar/ResolutionFacet.tsx | 1 - .../src/main/js/apps/issues/sidebar/ScopeFacet.tsx | 1 - .../src/main/js/apps/issues/sidebar/SeverityFacet.tsx | 1 - .../src/main/js/apps/issues/sidebar/StatusFacet.tsx | 1 - .../sonar-web/src/main/js/apps/issues/sidebar/TypeFacet.tsx | 1 - .../__tests__/__snapshots__/ScopeFacet-test.tsx.snap | 2 +- .../__tests__/__snapshots__/StatusFacet-test.tsx.snap | 4 ++-- .../sidebar/__tests__/__snapshots__/TypeFacet-test.tsx.snap | 2 +- .../src/main/js/components/facet/ListStyleFacet.tsx | 6 ------ 10 files changed, 4 insertions(+), 16 deletions(-) diff --git a/server/sonar-web/src/main/js/apps/coding-rules/components/Facet.tsx b/server/sonar-web/src/main/js/apps/coding-rules/components/Facet.tsx index f5f9dbd741f..2b37791cb47 100644 --- a/server/sonar-web/src/main/js/apps/coding-rules/components/Facet.tsx +++ b/server/sonar-web/src/main/js/apps/coding-rules/components/Facet.tsx @@ -81,7 +81,6 @@ export default class Facet extends React.PureComponent { return ( { return ( 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 15e7530a135..0092ee39e0a 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 @@ -80,7 +80,6 @@ export default class SeverityFacet extends React.PureComponent { return ( } diff --git a/server/sonar-web/src/main/js/apps/issues/sidebar/StatusFacet.tsx b/server/sonar-web/src/main/js/apps/issues/sidebar/StatusFacet.tsx index 1f6d66bb610..6ff6c004b18 100644 --- a/server/sonar-web/src/main/js/apps/issues/sidebar/StatusFacet.tsx +++ b/server/sonar-web/src/main/js/apps/issues/sidebar/StatusFacet.tsx @@ -78,7 +78,6 @@ export default class StatusFacet extends React.PureComponent { return ( } diff --git a/server/sonar-web/src/main/js/apps/issues/sidebar/TypeFacet.tsx b/server/sonar-web/src/main/js/apps/issues/sidebar/TypeFacet.tsx index f7513f5879f..81326fc2b63 100644 --- a/server/sonar-web/src/main/js/apps/issues/sidebar/TypeFacet.tsx +++ b/server/sonar-web/src/main/js/apps/issues/sidebar/TypeFacet.tsx @@ -83,7 +83,6 @@ export default class TypeFacet extends React.PureComponent { return ( diff --git a/server/sonar-web/src/main/js/apps/issues/sidebar/__tests__/__snapshots__/ScopeFacet-test.tsx.snap b/server/sonar-web/src/main/js/apps/issues/sidebar/__tests__/__snapshots__/ScopeFacet-test.tsx.snap index ca871a44fa6..dab4fe20f21 100644 --- a/server/sonar-web/src/main/js/apps/issues/sidebar/__tests__/__snapshots__/ScopeFacet-test.tsx.snap +++ b/server/sonar-web/src/main/js/apps/issues/sidebar/__tests__/__snapshots__/ScopeFacet-test.tsx.snap @@ -97,7 +97,7 @@ exports[`should render correctly: disabled facet 1`] = ` extends React.Component, State extends React.Component, State