1
0
mirror of https://github.com/matrix-org/matrix-react-sdk.git synced 2025-11-13 08:02:38 +03:00

Actually spawn a bug report dialog.

This commit is contained in:
Travis Ralston
2019-12-02 17:26:08 -07:00
parent e47752ff8d
commit 6d42da8160
2 changed files with 5 additions and 2 deletions

View File

@@ -20,6 +20,7 @@ import {_t} from "../../../languageHandler";
import sdk from "../../../index";
import LabelledToggleSwitch from "../elements/LabelledToggleSwitch";
import MatrixClientPeg from "../../../MatrixClientPeg";
import Modal from "../../../Modal";
export default class RoomUpgradeWarningDialog extends React.Component {
static propTypes = {
@@ -57,7 +58,8 @@ export default class RoomUpgradeWarningDialog extends React.Component {
e.preventDefault();
e.stopPropagation();
const BugReportDialog = sdk.getComponent("dialogs.BugReportDialog");
Modal.createTrackedDialog('Bug Report Dialog', '', BugReportDialog, {});
};
render() {