diff options
author | Mathieu Suen <mathieu.suen@sonarsource.com> | 2022-08-25 12:33:16 +0200 |
---|---|---|
committer | sonartech <sonartech@sonarsource.com> | 2022-08-25 20:03:09 +0000 |
commit | d2030207ca79237d596b3e452598ac455b8fdd5f (patch) | |
tree | 1c8e7e18bbbb76dbb121b6054ceaf84f9f16aacd /server/sonar-web/src/main/js/apps/coding-rules | |
parent | 051bfcaaf9c148d2e845f204f86b4d2fc82aa726 (diff) | |
download | sonarqube-d2030207ca79237d596b3e452598ac455b8fdd5f.tar.gz sonarqube-d2030207ca79237d596b3e452598ac455b8fdd5f.zip |
SONAR-16823 Buttons have same name but different actions
Diffstat (limited to 'server/sonar-web/src/main/js/apps/coding-rules')
-rw-r--r-- | server/sonar-web/src/main/js/apps/coding-rules/components/Facet.tsx | 9 |
1 files changed, 3 insertions, 6 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 7be20e1a1cb..f77224b01c7 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 @@ -20,7 +20,6 @@ import classNames from 'classnames'; import { orderBy, sortBy, without } from 'lodash'; import * as React from 'react'; -import Tooltip from '../../../components/controls/Tooltip'; import FacetBox from '../../../components/facet/FacetBox'; import FacetHeader from '../../../components/facet/FacetHeader'; import FacetItem from '../../../components/facet/FacetItem'; @@ -110,11 +109,9 @@ export default class Facet extends React.PureComponent<Props> { className={classNames({ 'search-navigator-facet-box-forbidden': disabled })} property={this.props.property}> <FacetHeader - name={ - <Tooltip overlay={disabled ? this.props.disabledHelper : undefined}> - <span>{translate('coding_rules.facet', this.props.property)}</span> - </Tooltip> - } + name={translate('coding_rules.facet', this.props.property)} + disabled={disabled} + disabledHelper={this.props.disabledHelper} onClear={this.handleClear} onClick={disabled ? undefined : this.handleHeaderClick} open={this.props.open && !disabled} |