Add label to rageshakes for React soft crashes

This adds a label all rageshakes submitted via the React error boundary marking
them as soft crashes for triage.

Fixes https://github.com/vector-im/riot-web/issues/11072
This commit is contained in:
J. Ryan Stinnett 2019-10-09 11:59:10 +01:00
parent f384d4e5c1
commit e905abe5ce
3 changed files with 10 additions and 1 deletions

View file

@ -64,7 +64,9 @@ export default class ErrorBoundary extends React.PureComponent {
if (!BugReportDialog) {
return;
}
Modal.createTrackedDialog('Bug Report Dialog', '', BugReportDialog, {});
Modal.createTrackedDialog('Bug Report Dialog', '', BugReportDialog, {
label: 'react-soft-crash',
});
};
render() {