diff options
author | Nolwenn Cadic <98824442+Nolwenn-cadic-sonarsource@users.noreply.github.com> | 2023-08-23 15:43:50 +0200 |
---|---|---|
committer | sonartech <sonartech@sonarsource.com> | 2023-08-23 20:03:06 +0000 |
commit | 9a10a1475e5988adc64ebdacaf75d65b3feaecd3 (patch) | |
tree | b812d453cc5d8d5843f9b4bd835dd6f669aefdee /server/sonar-web/src/main/js/apps/quality-gates/components/Condition.tsx | |
parent | 3e80609e13dcade89cb718eadf7e7361230c1272 (diff) | |
download | sonarqube-9a10a1475e5988adc64ebdacaf75d65b3feaecd3.tar.gz sonarqube-9a10a1475e5988adc64ebdacaf75d65b3feaecd3.zip |
SONAR-20219 Remove over compliant Quality Gate warnings
Co-authored-by: Zipeng WU <zipeng.wu@sonarsource.com>
Diffstat (limited to 'server/sonar-web/src/main/js/apps/quality-gates/components/Condition.tsx')
-rw-r--r-- | server/sonar-web/src/main/js/apps/quality-gates/components/Condition.tsx | 15 |
1 files changed, 0 insertions, 15 deletions
diff --git a/server/sonar-web/src/main/js/apps/quality-gates/components/Condition.tsx b/server/sonar-web/src/main/js/apps/quality-gates/components/Condition.tsx index ea476fca3f1..39debe2a694 100644 --- a/server/sonar-web/src/main/js/apps/quality-gates/components/Condition.tsx +++ b/server/sonar-web/src/main/js/apps/quality-gates/components/Condition.tsx @@ -21,11 +21,8 @@ import classNames from 'classnames'; import * as React from 'react'; import { deleteCondition } from '../../../api/quality-gates'; import withMetricsContext from '../../../app/components/metrics/withMetricsContext'; -import { colors } from '../../../app/theme'; import { DeleteButton, EditButton } from '../../../components/controls/buttons'; import ConfirmModal from '../../../components/controls/ConfirmModal'; -import Tooltip from '../../../components/controls/Tooltip'; -import InfoIcon from '../../../components/icons/InfoIcon'; import { getLocalizedMetricName, translate, translateWithParameters } from '../../../helpers/l10n'; import { CaycStatus, @@ -39,7 +36,6 @@ import { getLocalizedMetricNameNoDiffMetric, isCaycCondition, } from '../utils'; -import CaycOverCompliantBadgeTooltip from './CaycOverCompliantBadgeTooltip'; import ConditionModal from './ConditionModal'; import ConditionValue from './ConditionValue'; @@ -61,7 +57,6 @@ interface State { modal: boolean; } -const TOOLTIP_MOUSE_LEAVE_DELAY = 0.3; export class ConditionComponent extends React.PureComponent<Props, State> { constructor(props: Props) { super(props); @@ -140,16 +135,6 @@ export class ConditionComponent extends React.PureComponent<Props, State> { /> </td> <td className="text-middle nowrap display-flex-justify-end"> - {!isCaycCondition(condition) && isCaycCompliantAndOverCompliant && ( - <span className="display-flex-center spacer-right"> - <Tooltip - overlay={<CaycOverCompliantBadgeTooltip />} - mouseLeaveDelay={TOOLTIP_MOUSE_LEAVE_DELAY} - > - <InfoIcon fill={colors.alertIconInfo} /> - </Tooltip> - </span> - )} {!isCaycModal && canEdit && ( <> {(!isCaycCompliantAndOverCompliant || |