]> source.dussan.org Git - sonarqube.git/commitdiff
open comment box on issue transition
authorStas Vilchik <vilchiks@gmail.com>
Mon, 20 Mar 2017 17:11:55 +0000 (18:11 +0100)
committerStas Vilchik <vilchiks@gmail.com>
Mon, 20 Mar 2017 17:11:55 +0000 (18:11 +0100)
server/sonar-web/src/main/js/components/issue/Issue.js

index 01c12f3b6790b8be5eb3bc4d99f5328656ffd80a..5717a060e3ba5e25b335c309d97f44eb148714b4 100644 (file)
@@ -65,6 +65,12 @@ class Issue extends React.PureComponent {
     if (!prevProps.selected && this.props.selected) {
       this.bindShortcuts();
     }
+
+    // $FlowFixMe resolution doesn't exist in type `Model`
+    const { resolution } = this.props.issue;
+    if (!prevProps.issue.resolution && ['FALSE-POSITIVE', 'WONTFIX'].includes(resolution)) {
+      this.issueView.comment({ fromTransition: true });
+    }
   }
 
   componentWillUnmount() {