Skip to content

Commit 8874c4d

Browse files
authored
Merge pull request element-hq#4910 from vector-im/t3chguy/success_bug_report
lets let people know that the bug report actually sent properly :)
2 parents 679836a + a2b57f5 commit 8874c4d

2 files changed

Lines changed: 9 additions & 1 deletion

File tree

‎src/components/views/dialogs/BugReportDialog.js‎

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ limitations under the License.
1717
import React from 'react';
1818
import sdk from 'matrix-react-sdk';
1919
import SdkConfig from 'matrix-react-sdk/lib/SdkConfig';
20+
import Modal from 'matrix-react-sdk/lib/Modal';
2021
import { _t } from 'matrix-react-sdk/lib/languageHandler';
2122

2223
export default class BugReportDialog extends React.Component {
@@ -64,8 +65,13 @@ export default class BugReportDialog extends React.Component {
6465
progressCallback: this._sendProgressCallback,
6566
}).then(() => {
6667
if (!this._unmounted) {
67-
this.setState({ busy: false, progress: null });
6868
this.props.onFinished(false);
69+
const QuestionDialog = sdk.getComponent("dialogs.QuestionDialog");
70+
Modal.createTrackedDialog('Bug report sent', '', QuestionDialog, {
71+
title: _t('Bug report sent'),
72+
description: _t('Thank you!'),
73+
hasCancelButton: false,
74+
});
6975
}
7076
}, (err) => {
7177
if (!this._unmounted) {

‎src/i18n/strings/en_EN.json‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
"All Rooms": "All Rooms",
1010
"All notifications are currently disabled for all targets.": "All notifications are currently disabled for all targets.",
1111
"An error occurred whilst saving your email notification preferences.": "An error occurred whilst saving your email notification preferences.",
12+
"Bug report sent": "Bug report sent",
1213
"Call invitation": "Call invitation",
1314
"Cancel": "Cancel",
1415
"Cancel Sending": "Cancel Sending",
@@ -149,6 +150,7 @@
149150
"You are not receiving desktop notifications": "You are not receiving desktop notifications",
150151
"You are Rioting as a guest. <a>Register</a> or <a>sign in</a> to access more rooms and features!": "You are Rioting as a guest. <a>Register</a> or <a>sign in</a> to access more rooms and features!",
151152
"You might have configured them in a client other than Riot. You cannot tune them in Riot but they still apply": "You might have configured them in a client other than Riot. You cannot tune them in Riot but they still apply",
153+
"Thank you!": "Thank you!",
152154
"Sunday": "Sunday",
153155
"Monday": "Monday",
154156
"Tuesday": "Tuesday",

0 commit comments

Comments
 (0)