mirror of https://github.com/vector-im/riot-web
delint
parent
06230e01e3
commit
aa990462ce
|
@ -32,15 +32,19 @@ class EditableAliasesList extends EditableItemList {
|
||||||
const RoomAliasField = sdk.getComponent('views.elements.RoomAliasField');
|
const RoomAliasField = sdk.getComponent('views.elements.RoomAliasField');
|
||||||
const onChange = (alias) => this._onNewItemChanged({target: {value: alias}});
|
const onChange = (alias) => this._onNewItemChanged({target: {value: alias}});
|
||||||
return (
|
return (
|
||||||
<form onSubmit={this._onItemAdded} autoComplete="off"
|
<form
|
||||||
noValidate={true} className="mx_EditableItemList_newItem">
|
onSubmit={this._onItemAdded}
|
||||||
|
autoComplete="off"
|
||||||
|
noValidate={true}
|
||||||
|
className="mx_EditableItemList_newItem"
|
||||||
|
>
|
||||||
<RoomAliasField
|
<RoomAliasField
|
||||||
id={`mx_EditableItemList_new_${this.props.id}`}
|
id={`mx_EditableItemList_new_${this.props.id}`}
|
||||||
onChange={onChange}
|
onChange={onChange}
|
||||||
value={this.props.newItem || ""}
|
value={this.props.newItem || ""}
|
||||||
domain={this.props.domain} />
|
domain={this.props.domain} />
|
||||||
<AccessibleButton onClick={this._onItemAdded} kind="primary">
|
<AccessibleButton onClick={this._onItemAdded} kind="primary">
|
||||||
{_t("Add")}
|
{ _t("Add") }
|
||||||
</AccessibleButton>
|
</AccessibleButton>
|
||||||
</form>
|
</form>
|
||||||
);
|
);
|
||||||
|
|
Loading…
Reference in New Issue