Skip to content

Commit 3fc0c45

Browse files
author
Weblate
committed
Merge remote-tracking branch 'origin/develop' into develop
2 parents 4a8729d + f6a920a commit 3fc0c45

1 file changed

Lines changed: 10 additions & 10 deletions

File tree

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

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ class SendCustomEvent extends React.Component {
5757
_buttons() {
5858
return <div className="mx_Dialog_buttons">
5959
<button onClick={this.onBack}>{ _t('Back') }</button>
60-
{!this.state.message && <button onClick={this._send}>{ _t('Send') }</button>}
60+
{ !this.state.message && <button onClick={this._send}>{ _t('Send') }</button> }
6161
</div>;
6262
}
6363

@@ -83,7 +83,7 @@ class SendCustomEvent extends React.Component {
8383
}
8484

8585
_additionalFields() {
86-
return <div/>;
86+
return <div />;
8787
}
8888

8989
_onChange(e) {
@@ -94,15 +94,15 @@ class SendCustomEvent extends React.Component {
9494
if (this.state.message) {
9595
return <div>
9696
<div className="mx_Dialog_content">
97-
{this.state.message}
97+
{ this.state.message }
9898
</div>
99-
{this._buttons()}
99+
{ this._buttons() }
100100
</div>;
101101
}
102102

103103
return <div>
104104
<div className="mx_Dialog_content">
105-
{this._additionalFields()}
105+
{ this._additionalFields() }
106106
<div className="mx_TextInputDialog_label">
107107
<label htmlFor="eventType"> { _t('Event Type') } </label>
108108
</div>
@@ -117,7 +117,7 @@ class SendCustomEvent extends React.Component {
117117
<textarea id="evContent" onChange={this._onChange} value={this.state.input_evContent} className="mx_TextInputDialog_input" cols="63" rows="5" />
118118
</div>
119119
</div>
120-
{this._buttons()}
120+
{ this._buttons() }
121121
</div>;
122122
}
123123
}
@@ -223,7 +223,7 @@ class RoomStateExplorer extends React.Component {
223223
if (this.state.event) {
224224
return <div className="mx_ViewSource">
225225
<div className="mx_Dialog_content">
226-
<pre>{JSON.stringify(this.state.event.event, null, 2)}</pre>
226+
<pre>{ JSON.stringify(this.state.event.event, null, 2) }</pre>
227227
</div>
228228
<div className="mx_Dialog_buttons">
229229
<button onClick={this.onBack}>{ _t('Back') }</button>
@@ -237,7 +237,7 @@ class RoomStateExplorer extends React.Component {
237237
if (this.state.eventType === null) {
238238
Object.keys(this.roomStateEvents).forEach((evType) => {
239239
// Skip this entry if does not contain search query
240-
if (this.state.query && !evType.includes(this.state.query)) return;
240+
if (this.state.query && !evType.toLowerCase().includes(this.state.query.toLowerCase())) return;
241241

242242
const stateGroup = this.roomStateEvents[evType];
243243
const stateKeys = Object.keys(stateGroup);
@@ -258,7 +258,7 @@ class RoomStateExplorer extends React.Component {
258258
const stateGroup = this.roomStateEvents[evType];
259259
Object.keys(stateGroup).forEach((stateKey) => {
260260
// Skip this entry if does not contain search query
261-
if (this.state.query && !stateKey.includes(this.state.query)) return;
261+
if (this.state.query && !stateKey.toLowerCase().includes(this.state.query.toLowerCase())) return;
262262

263263
const ev = stateGroup[stateKey];
264264
rows.push(<button className="mx_DevTools_RoomStateExplorer_button" key={stateKey}
@@ -271,7 +271,7 @@ class RoomStateExplorer extends React.Component {
271271
return <div>
272272
<div className="mx_Dialog_content">
273273
<input onChange={this.onQuery} placeholder={_t('Filter results')} size="64" className="mx_TextInputDialog_input mx_DevTools_RoomStateExplorer_query" value={this.state.query} />
274-
{rows}
274+
{ rows }
275275
</div>
276276
<div className="mx_Dialog_buttons">
277277
<button onClick={this.onBack}>{ _t('Back') }</button>

0 commit comments

Comments
 (0)