mirror of https://github.com/vector-im/riot-web
Merge pull request #3207 from matrix-org/travis/rageshake-required
Require an issue URL (or notes) on rageshakespull/21833/head
commit
0950037ca3
|
@ -50,6 +50,13 @@ export default class BugReportDialog extends React.Component {
|
||||||
}
|
}
|
||||||
|
|
||||||
_onSubmit(ev) {
|
_onSubmit(ev) {
|
||||||
|
if ((!this.state.text || !this.state.text.trim()) && (!this.state.issueUrl || !this.state.issueUrl.trim())) {
|
||||||
|
this.setState({
|
||||||
|
err: _t("Please tell us what went wrong or, better, a github issue that describes the problem."),
|
||||||
|
});
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
const userText =
|
const userText =
|
||||||
(this.state.text.length > 0 ? this.state.text + '\n\n': '') + 'Issue: ' +
|
(this.state.text.length > 0 ? this.state.text + '\n\n': '') + 'Issue: ' +
|
||||||
(this.state.issueUrl.length > 0 ? this.state.issueUrl : 'No issue link given');
|
(this.state.issueUrl.length > 0 ? this.state.issueUrl : 'No issue link given');
|
||||||
|
@ -93,7 +100,7 @@ export default class BugReportDialog extends React.Component {
|
||||||
this.setState({ issueUrl: ev.target.value });
|
this.setState({ issueUrl: ev.target.value });
|
||||||
}
|
}
|
||||||
|
|
||||||
_onSendLogsChange(ev) {
|
_onSendLogsChange(ev) {
|
||||||
this.setState({ sendLogs: ev.target.checked });
|
this.setState({ sendLogs: ev.target.checked });
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -1108,6 +1108,7 @@
|
||||||
"Unable to find profiles for the Matrix IDs listed below - would you like to invite them anyway?": "Unable to find profiles for the Matrix IDs listed below - would you like to invite them anyway?",
|
"Unable to find profiles for the Matrix IDs listed below - would you like to invite them anyway?": "Unable to find profiles for the Matrix IDs listed below - would you like to invite them anyway?",
|
||||||
"Invite anyway and never warn me again": "Invite anyway and never warn me again",
|
"Invite anyway and never warn me again": "Invite anyway and never warn me again",
|
||||||
"Invite anyway": "Invite anyway",
|
"Invite anyway": "Invite anyway",
|
||||||
|
"Please tell us what went wrong or, better, a github issue that describes the problem.": "Please tell us what went wrong or, better, a github issue that describes the problem.",
|
||||||
"Preparing to send logs": "Preparing to send logs",
|
"Preparing to send logs": "Preparing to send logs",
|
||||||
"Logs sent": "Logs sent",
|
"Logs sent": "Logs sent",
|
||||||
"Thank you!": "Thank you!",
|
"Thank you!": "Thank you!",
|
||||||
|
|
Loading…
Reference in New Issue