diff options
author | Mathieu Suen <mathieu.suen@sonarsource.com> | 2021-12-14 13:14:14 +0100 |
---|---|---|
committer | sonartech <sonartech@sonarsource.com> | 2021-12-24 20:02:59 +0000 |
commit | 2be077fe1646c5d2a9bc42953a867e686cfd270d (patch) | |
tree | d8ae7d67ef2ab9ee5783975340623998c7f89243 /server/sonar-web/src/main/js | |
parent | e9797e0f7d3895c465c69cc3b997eb57100ab3ba (diff) | |
download | sonarqube-2be077fe1646c5d2a9bc42953a867e686cfd270d.tar.gz sonarqube-2be077fe1646c5d2a9bc42953a867e686cfd270d.zip |
SONAR-15789 Adding donut chart for portfolio rating
Diffstat (limited to 'server/sonar-web/src/main/js')
-rw-r--r-- | server/sonar-web/src/main/js/app/components/extensions/exposeLibraries.ts | 2 | ||||
-rw-r--r-- | server/sonar-web/src/main/js/components/controls/Tooltip.tsx | 7 |
2 files changed, 5 insertions, 4 deletions
diff --git a/server/sonar-web/src/main/js/app/components/extensions/exposeLibraries.ts b/server/sonar-web/src/main/js/app/components/extensions/exposeLibraries.ts index 879f2f0ef62..b39b7a7b81e 100644 --- a/server/sonar-web/src/main/js/app/components/extensions/exposeLibraries.ts +++ b/server/sonar-web/src/main/js/app/components/extensions/exposeLibraries.ts @@ -19,6 +19,7 @@ */ import { FormattedMessage } from 'react-intl'; import NotFound from '../../../app/components/NotFound'; +import DonutChart from '../../../components/charts/DonutChart'; import ActionsDropdown, { ActionsDropdownItem } from '../../../components/controls/ActionsDropdown'; import BoxedTabs from '../../../components/controls/BoxedTabs'; import { @@ -193,6 +194,7 @@ const exposeLibraries = () => { DateTimeFormatter, DeferredSpinner, DetachIcon, + DonutChart, Dropdown, DropdownIcon, DuplicationsRating, diff --git a/server/sonar-web/src/main/js/components/controls/Tooltip.tsx b/server/sonar-web/src/main/js/components/controls/Tooltip.tsx index 79facbd7945..b5e5f663e38 100644 --- a/server/sonar-web/src/main/js/components/controls/Tooltip.tsx +++ b/server/sonar-web/src/main/js/components/controls/Tooltip.tsx @@ -269,11 +269,10 @@ export class TooltipInner extends React.Component<TooltipProps, State> { if (this.mounted && this.props.visible === undefined && !this.mouseIn) { this.setState({ visible: false }); } + if (this.props.onHide && !this.mouseIn) { + this.props.onHide(); + } }, (this.props.mouseLeaveDelay || 0) * 1000); - - if (this.props.onHide) { - this.props.onHide(); - } } }; |