mirror of https://github.com/vector-im/riot-web
only let people add aliases if they canSeetAliases
parent
80416fe583
commit
385e1ca1fb
|
@ -289,6 +289,7 @@ module.exports = React.createClass({
|
||||||
);
|
);
|
||||||
})}
|
})}
|
||||||
|
|
||||||
|
{ this.props.canSetAliases ?
|
||||||
<div className="mx_RoomSettings_aliasesTableRow" key="new">
|
<div className="mx_RoomSettings_aliasesTableRow" key="new">
|
||||||
<EditableText
|
<EditableText
|
||||||
ref="add_alias"
|
ref="add_alias"
|
||||||
|
@ -301,7 +302,8 @@ module.exports = React.createClass({
|
||||||
<img src="img/plus.svg" width="14" height="14" alt="Add"
|
<img src="img/plus.svg" width="14" height="14" alt="Add"
|
||||||
onClick={ self.onAliasAdded.bind(self, undefined) }/>
|
onClick={ self.onAliasAdded.bind(self, undefined) }/>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div> : ""
|
||||||
|
}
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
{ remote_aliases_section }
|
{ remote_aliases_section }
|
||||||
|
|
Loading…
Reference in New Issue