diff --git a/app/internal_packages/report-bug/lib/bug-report-root.jsx b/app/internal_packages/report-bug/lib/bug-report-root.jsx index 04a5353ca9..8e49d73214 100644 --- a/app/internal_packages/report-bug/lib/bug-report-root.jsx +++ b/app/internal_packages/report-bug/lib/bug-report-root.jsx @@ -3,6 +3,7 @@ import { ipcRenderer } from 'electron'; import uuid from 'uuid'; import { LottieImg } from 'mailspring-component-kit'; import { Actions } from 'mailspring-exports'; +import BugReportSqlQuery from './bug-report-sql-query'; export default class BugReportRoot extends React.PureComponent { static displayName = 'BugReportRoot'; static containerRequired = false; @@ -15,6 +16,7 @@ export default class BugReportRoot extends React.PureComponent { description: '', submitting: false, submitButtonText: 'Submit', + includeSqlQueryResults: false, }; this.logID = uuid(); this.mounted = false; @@ -106,6 +108,9 @@ export default class BugReportRoot extends React.PureComponent { onToggleUploadLogs = () => { this.setState({ uploadLogs: !this.state.uploadLogs }); }; + onToggleSQLQuery = () => { + this.setState({ includeSqlQueryResults: !this.state.includeSqlQueryResults }); + }; onToggleUploadScreenShots = () => { this.setState({ uploadScreenShots: !this.state.uploadScreenShots }); }; @@ -140,40 +145,58 @@ export default class BugReportRoot extends React.PureComponent { ); } + renderSqlQuery() { + if (this.state.includeSqlQueryResults) { + return ; + } + return null; + } render() { return ( -
-

Thank you for helping Edison Mail

-
- -