From: Jeremy Davis Date: Fri, 6 Mar 2020 13:40:07 +0000 (+0100) Subject: SONAR-13166 Fix tooltip on hotspot status X-Git-Tag: 8.3.0.34182~148 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=baa8e99e2e78f026c8389352e8a1be8b2fd574d6;p=sonarqube.git SONAR-13166 Fix tooltip on hotspot status --- diff --git a/server/sonar-web/src/main/js/apps/security-hotspots/components/status/Status.tsx b/server/sonar-web/src/main/js/apps/security-hotspots/components/status/Status.tsx index 097bda68eee..eff11aca461 100644 --- a/server/sonar-web/src/main/js/apps/security-hotspots/components/status/Status.tsx +++ b/server/sonar-web/src/main/js/apps/security-hotspots/components/status/Status.tsx @@ -95,7 +95,7 @@ export function Status(props: StatusProps) {
{readonly ? ( - {actionableTrigger} + {trigger} ) : ( actionableTrigger diff --git a/server/sonar-web/src/main/js/apps/security-hotspots/components/status/__tests__/__snapshots__/Status-test.tsx.snap b/server/sonar-web/src/main/js/apps/security-hotspots/components/status/__tests__/__snapshots__/Status-test.tsx.snap index 7438207a07c..c16aed0e979 100644 --- a/server/sonar-web/src/main/js/apps/security-hotspots/components/status/__tests__/__snapshots__/Status-test.tsx.snap +++ b/server/sonar-web/src/main/js/apps/security-hotspots/components/status/__tests__/__snapshots__/Status-test.tsx.snap @@ -297,140 +297,24 @@ exports[`should render correctly: readonly 1`] = ` overlay="hotspots.status.cannot_change_status" placement="bottom" > - - This a strong message about fixing !

", - "key": "squid:S2077", - "name": "That rule", - "riskDescription": "

This a strong message about risk !

", - "securityCategory": "sql-injection", - "vulnerabilityDescription": "

This a strong message about vulnerability !

", - "vulnerabilityProbability": "HIGH", - }, - "status": "REVIEWED", - "textRange": Object { - "endLine": 142, - "endOffset": 83, - "startLine": 142, - "startOffset": 26, - }, - "updateDate": "2013-05-13T17:55:42+0200", - "users": Array [ - Object { - "active": true, - "local": true, - "login": "assignee", - "name": "John Doe", - }, - Object { - "active": true, - "local": true, - "login": "author", - "name": "John Doe", - }, - ], - } - } - onStatusOptionChange={[Function]} - /> - - } +
-
- -
+
- +
`;