Browse Source

open comment box on issue transition

tags/6.4-RC1
Stas Vilchik 7 years ago
parent
commit
5b77a83d55
1 changed files with 6 additions and 0 deletions
  1. 6
    0
      server/sonar-web/src/main/js/components/issue/Issue.js

+ 6
- 0
server/sonar-web/src/main/js/components/issue/Issue.js View 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() {

Loading…
Cancel
Save