aboutsummaryrefslogtreecommitdiffstats
path: root/server/sonar-web
diff options
context:
space:
mode:
authorWouter Admiraal <wouter.admiraal@sonarsource.com>2019-10-21 12:08:54 +0200
committerSonarTech <sonartech@sonarsource.com>2019-10-28 20:21:08 +0100
commit335d323f8abe8e1af98f58c93ade7498abd85d9c (patch)
tree0457cd185447d860e30c18a5563fac9d3669d192 /server/sonar-web
parentca6ddb253d4e7fc7cbdfac45fdfd2e7db461467c (diff)
downloadsonarqube-335d323f8abe8e1af98f58c93ade7498abd85d9c.tar.gz
sonarqube-335d323f8abe8e1af98f58c93ade7498abd85d9c.zip
SONAR-12450 Type and Resolution facets have a different clear label
Diffstat (limited to 'server/sonar-web')
-rw-r--r--server/sonar-web/src/main/js/apps/issues/sidebar/ResolutionFacet.tsx1
-rw-r--r--server/sonar-web/src/main/js/apps/issues/sidebar/TypeFacet.tsx1
-rw-r--r--server/sonar-web/src/main/js/apps/issues/sidebar/__tests__/__snapshots__/TypeFacet-test.tsx.snap1
-rw-r--r--server/sonar-web/src/main/js/components/facet/FacetHeader.tsx3
4 files changed, 1 insertions, 5 deletions
diff --git a/server/sonar-web/src/main/js/apps/issues/sidebar/ResolutionFacet.tsx b/server/sonar-web/src/main/js/apps/issues/sidebar/ResolutionFacet.tsx
index d59d70f4dd9..f76a1b3065d 100644
--- a/server/sonar-web/src/main/js/apps/issues/sidebar/ResolutionFacet.tsx
+++ b/server/sonar-web/src/main/js/apps/issues/sidebar/ResolutionFacet.tsx
@@ -114,7 +114,6 @@ export default class ResolutionFacet extends React.PureComponent<Props> {
return (
<FacetBox property={this.property}>
<FacetHeader
- clearLabel="reset_verb"
fetching={this.props.fetching}
name={translate('issues.facet', this.property)}
onClear={this.handleClear}
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 ff4885ad4ea..abd4ad6c546 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
@@ -141,7 +141,6 @@ export class TypeFacet extends React.PureComponent<Props> {
return (
<FacetBox property={this.property}>
<FacetHeader
- clearLabel="reset_verb"
fetching={this.props.fetching}
name={translate('issues.facet', this.property)}
onClear={this.handleClear}
diff --git a/server/sonar-web/src/main/js/apps/issues/sidebar/__tests__/__snapshots__/TypeFacet-test.tsx.snap b/server/sonar-web/src/main/js/apps/issues/sidebar/__tests__/__snapshots__/TypeFacet-test.tsx.snap
index 47aafc2c20b..e237e5bc5f8 100644
--- a/server/sonar-web/src/main/js/apps/issues/sidebar/__tests__/__snapshots__/TypeFacet-test.tsx.snap
+++ b/server/sonar-web/src/main/js/apps/issues/sidebar/__tests__/__snapshots__/TypeFacet-test.tsx.snap
@@ -98,7 +98,6 @@ exports[`should render open by default 1`] = `
property="types"
>
<FacetHeader
- clearLabel="reset_verb"
fetching={false}
name="issues.facet.types"
onClear={[Function]}
diff --git a/server/sonar-web/src/main/js/components/facet/FacetHeader.tsx b/server/sonar-web/src/main/js/components/facet/FacetHeader.tsx
index a1b3a15ece2..d4a4a517acd 100644
--- a/server/sonar-web/src/main/js/components/facet/FacetHeader.tsx
+++ b/server/sonar-web/src/main/js/components/facet/FacetHeader.tsx
@@ -26,7 +26,6 @@ import { translate, translateWithParameters } from 'sonar-ui-common/helpers/l10n
interface Props {
children?: React.ReactNode;
- clearLabel?: string;
fetching?: boolean;
helper?: string;
name: React.ReactNode;
@@ -103,7 +102,7 @@ export default class FacetHeader extends React.PureComponent<Props> {
<Button
className="search-navigator-facet-header-button button-small button-red"
onClick={this.props.onClear}>
- {translate(this.props.clearLabel || 'clear')}
+ {translate('clear')}
</Button>
)}
</div>