Step 8.5: Move report event dialog construction
This commit is contained in:
parent
8dab169c52
commit
226700ba95
4 changed files with 43 additions and 4 deletions
|
@ -22,6 +22,7 @@ import { RoomViewStore } from "../stores/RoomViewStore";
|
|||
import ForwardDialog from "../components/views/dialogs/ForwardDialog";
|
||||
import { MatrixClientPeg } from "../MatrixClientPeg";
|
||||
import { Action } from "../dispatcher/actions";
|
||||
import ReportEventDialog from "../components/views/dialogs/ReportEventDialog";
|
||||
|
||||
/**
|
||||
* Auxiliary class to listen for dialog opening over the dispatcher and
|
||||
|
@ -59,6 +60,11 @@ export class DialogOpener {
|
|||
permalinkCreator: payload.permalinkCreator,
|
||||
});
|
||||
break;
|
||||
case Action.OpenReportEventDialog:
|
||||
Modal.createTrackedDialog('Report Event', '', ReportEventDialog, {
|
||||
event: payload.event,
|
||||
}, 'mx_Dialog_reportEvent');
|
||||
break;
|
||||
}
|
||||
};
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue