From dccee6d419222c4996e2daa74fd57cbb63e296a8 Mon Sep 17 00:00:00 2001 From: Michael Telatynski <7t3chguy@gmail.com> Date: Mon, 18 Sep 2017 12:03:11 +0100 Subject: [PATCH] add ability to filter room state types/results Signed-off-by: Michael Telatynski <7t3chguy@gmail.com> --- src/components/views/dialogs/DevtoolsDialog.js | 13 +++++++++++++ .../vector-web/views/dialogs/_DevtoolsDialog.scss | 2 +- 2 files changed, 14 insertions(+), 1 deletion(-) diff --git a/src/components/views/dialogs/DevtoolsDialog.js b/src/components/views/dialogs/DevtoolsDialog.js index 6f9d6316..9c5948b4 100644 --- a/src/components/views/dialogs/DevtoolsDialog.js +++ b/src/components/views/dialogs/DevtoolsDialog.js @@ -175,9 +175,11 @@ class RoomStateExplorer extends React.Component { this.onBack = this.onBack.bind(this); this.editEv = this.editEv.bind(this); + this.onQuery = this.onQuery.bind(this); } state = { + query: '', eventType: null, event: null, }; @@ -213,6 +215,10 @@ class RoomStateExplorer extends React.Component { }); } + onQuery(ev) { + this.setState({ query: ev.target.value }); + } + render() { if (this.state.event) { return