From 6d42da8160bf1c3eb30455d80fe6ca5941740e1b Mon Sep 17 00:00:00 2001 From: Travis Ralston Date: Mon, 2 Dec 2019 17:26:08 -0700 Subject: [PATCH] Actually spawn a bug report dialog. --- src/SlashCommands.js | 3 ++- src/components/views/dialogs/RoomUpgradeWarningDialog.js | 4 +++- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/src/SlashCommands.js b/src/SlashCommands.js index b488fa821b..a9c015fdaf 100644 --- a/src/SlashCommands.js +++ b/src/SlashCommands.js @@ -158,7 +158,8 @@ export const CommandMap = { const RoomUpgradeWarningDialog = sdk.getComponent("dialogs.RoomUpgradeWarningDialog"); const {finished} = Modal.createTrackedDialog('Slash Commands', 'upgrade room confirmation', - RoomUpgradeWarningDialog, {roomId: roomId, targetVersion: args}); + RoomUpgradeWarningDialog, {roomId: roomId, targetVersion: args}, /*className=*/null, + /*isPriority=*/false, /*isStatic=*/true); return success(finished.then(async ([resp]) => { if (!resp.continue) return; diff --git a/src/components/views/dialogs/RoomUpgradeWarningDialog.js b/src/components/views/dialogs/RoomUpgradeWarningDialog.js index 276dcf16be..4c5a1abf7a 100644 --- a/src/components/views/dialogs/RoomUpgradeWarningDialog.js +++ b/src/components/views/dialogs/RoomUpgradeWarningDialog.js @@ -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() {