From: Grégoire Aubert Date: Fri, 5 Apr 2019 13:51:17 +0000 (+0200) Subject: SONAR-11910 Allow to assign a Security Hotspot in issues page X-Git-Tag: 7.8~360 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=df22cb0fe60f1a2375cb87bb8a2bb9ca1bc53103;p=sonarqube.git SONAR-11910 Allow to assign a Security Hotspot in issues page --- diff --git a/server/sonar-web/src/main/js/components/issue/components/IssueActionsBar.tsx b/server/sonar-web/src/main/js/components/issue/components/IssueActionsBar.tsx index cdacdb47572..7c7b2353c9d 100644 --- a/server/sonar-web/src/main/js/components/issue/components/IssueActionsBar.tsx +++ b/server/sonar-web/src/main/js/components/issue/components/IssueActionsBar.tsx @@ -127,17 +127,15 @@ export default class IssueActionsBar extends React.PureComponent { togglePopup={this.props.togglePopup} /> - {!isSecurityHotspot && ( -
  • - -
  • - )} +
  • + +
  • {!isSecurityHotspot && issue.effort && (
  • diff --git a/server/sonar-web/src/main/js/components/issue/components/__tests__/__snapshots__/IssueActionsBar-test.tsx.snap b/server/sonar-web/src/main/js/components/issue/components/__tests__/__snapshots__/IssueActionsBar-test.tsx.snap index 471c32d588a..229651354a3 100644 --- a/server/sonar-web/src/main/js/components/issue/components/__tests__/__snapshots__/IssueActionsBar-test.tsx.snap +++ b/server/sonar-web/src/main/js/components/issue/components/__tests__/__snapshots__/IssueActionsBar-test.tsx.snap @@ -814,6 +814,49 @@ exports[`should render security hotspot correctly 1`] = ` togglePopup={[MockFunction]} />
  • +
  • + +