Close the dialog box after sending bugs

pull/3081/head
Kegan Dougal 2017-01-26 13:42:26 +00:00
parent 7850f7e505
commit b16fa4171a
1 changed files with 1 additions and 0 deletions

View File

@ -49,6 +49,7 @@ export default class BugReportDialog extends React.Component {
this.setState({ busy: true, err: null });
rageshake.sendBugReport(userText, sendLogs).then(() => {
this.setState({ busy: false });
this.props.onFinished(false);
}, (err) => {
this.setState({ busy: false, err: `Failed: ${err.message}` });
});