Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
This commit is contained in:
Michael Telatynski 2017-10-23 11:42:06 +01:00
parent eb45b00b32
commit b16d4280b7
No known key found for this signature in database
GPG Key ID: 3F879DA5AD802A5E

View File

@ -57,7 +57,7 @@ class SendCustomEvent extends React.Component {
_buttons() { _buttons() {
return <div className="mx_Dialog_buttons"> return <div className="mx_Dialog_buttons">
<button onClick={this.onBack}>{ _t('Back') }</button> <button onClick={this.onBack}>{ _t('Back') }</button>
{!this.state.message && <button onClick={this._send}>{ _t('Send') }</button>} { !this.state.message && <button onClick={this._send}>{ _t('Send') }</button> }
</div>; </div>;
} }
@ -83,7 +83,7 @@ class SendCustomEvent extends React.Component {
} }
_additionalFields() { _additionalFields() {
return <div/>; return <div />;
} }
_onChange(e) { _onChange(e) {
@ -94,15 +94,15 @@ class SendCustomEvent extends React.Component {
if (this.state.message) { if (this.state.message) {
return <div> return <div>
<div className="mx_Dialog_content"> <div className="mx_Dialog_content">
{this.state.message} { this.state.message }
</div> </div>
{this._buttons()} { this._buttons() }
</div>; </div>;
} }
return <div> return <div>
<div className="mx_Dialog_content"> <div className="mx_Dialog_content">
{this._additionalFields()} { this._additionalFields() }
<div className="mx_TextInputDialog_label"> <div className="mx_TextInputDialog_label">
<label htmlFor="eventType"> { _t('Event Type') } </label> <label htmlFor="eventType"> { _t('Event Type') } </label>
</div> </div>
@ -117,7 +117,7 @@ class SendCustomEvent extends React.Component {
<textarea id="evContent" onChange={this._onChange} value={this.state.input_evContent} className="mx_TextInputDialog_input" cols="63" rows="5" /> <textarea id="evContent" onChange={this._onChange} value={this.state.input_evContent} className="mx_TextInputDialog_input" cols="63" rows="5" />
</div> </div>
</div> </div>
{this._buttons()} { this._buttons() }
</div>; </div>;
} }
} }
@ -223,7 +223,7 @@ class RoomStateExplorer extends React.Component {
if (this.state.event) { if (this.state.event) {
return <div className="mx_ViewSource"> return <div className="mx_ViewSource">
<div className="mx_Dialog_content"> <div className="mx_Dialog_content">
<pre>{JSON.stringify(this.state.event.event, null, 2)}</pre> <pre>{ JSON.stringify(this.state.event.event, null, 2) }</pre>
</div> </div>
<div className="mx_Dialog_buttons"> <div className="mx_Dialog_buttons">
<button onClick={this.onBack}>{ _t('Back') }</button> <button onClick={this.onBack}>{ _t('Back') }</button>
@ -271,7 +271,7 @@ class RoomStateExplorer extends React.Component {
return <div> return <div>
<div className="mx_Dialog_content"> <div className="mx_Dialog_content">
<input onChange={this.onQuery} placeholder={_t('Filter results')} size="64" className="mx_TextInputDialog_input mx_DevTools_RoomStateExplorer_query" value={this.state.query} /> <input onChange={this.onQuery} placeholder={_t('Filter results')} size="64" className="mx_TextInputDialog_input mx_DevTools_RoomStateExplorer_query" value={this.state.query} />
{rows} { rows }
</div> </div>
<div className="mx_Dialog_buttons"> <div className="mx_Dialog_buttons">
<button onClick={this.onBack}>{ _t('Back') }</button> <button onClick={this.onBack}>{ _t('Back') }</button>