mirror of https://github.com/vector-im/riot-web
only let people add aliases if they canSeetAliases
parent
80416fe583
commit
385e1ca1fb
|
@ -289,19 +289,21 @@ module.exports = React.createClass({
|
||||||
);
|
);
|
||||||
})}
|
})}
|
||||||
|
|
||||||
<div className="mx_RoomSettings_aliasesTableRow" key="new">
|
{ this.props.canSetAliases ?
|
||||||
<EditableText
|
<div className="mx_RoomSettings_aliasesTableRow" key="new">
|
||||||
ref="add_alias"
|
<EditableText
|
||||||
className="mx_RoomSettings_alias mx_RoomSettings_editable"
|
ref="add_alias"
|
||||||
placeholderClassName="mx_RoomSettings_aliasPlaceholder"
|
className="mx_RoomSettings_alias mx_RoomSettings_editable"
|
||||||
placeholder={ "New address (e.g. #foo:" + localDomain + ")" }
|
placeholderClassName="mx_RoomSettings_aliasPlaceholder"
|
||||||
blurToCancel={ false }
|
placeholder={ "New address (e.g. #foo:" + localDomain + ")" }
|
||||||
onValueChanged={ self.onAliasAdded } />
|
blurToCancel={ false }
|
||||||
<div className="mx_RoomSettings_addAlias">
|
onValueChanged={ self.onAliasAdded } />
|
||||||
<img src="img/plus.svg" width="14" height="14" alt="Add"
|
<div className="mx_RoomSettings_addAlias">
|
||||||
onClick={ self.onAliasAdded.bind(self, undefined) }/>
|
<img src="img/plus.svg" width="14" height="14" alt="Add"
|
||||||
</div>
|
onClick={ self.onAliasAdded.bind(self, undefined) }/>
|
||||||
</div>
|
</div>
|
||||||
|
</div> : ""
|
||||||
|
}
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
{ remote_aliases_section }
|
{ remote_aliases_section }
|
||||||
|
|
Loading…
Reference in New Issue