open comment box on issue transition

This commit is contained in:
Stas Vilchik 2017-03-20 18:11:55 +01:00
vanhempi 4d04e550a9
commit 5b77a83d55

Näytä tiedosto

@ -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() {