Move power level stuff to EntityTile for now

pull/21833/head
Kegan Dougal 2016-01-18 17:37:17 +00:00
parent 0465323ca6
commit a8643ff039
1 changed files with 10 additions and 0 deletions

View File

@ -108,6 +108,15 @@ module.exports = React.createClass({
);
}
var power;
var powerLevel = this.props.powerLevel;
if (powerLevel >= 50 && powerLevel < 99) {
power = <img src="img/mod.svg" className="mx_EntityTile_power" width="16" height="17" alt="Mod"/>;
}
if (powerLevel >= 99) {
power = <img src="img/admin.svg" className="mx_EntityTile_power" width="16" height="17" alt="Admin"/>;
}
var MemberAvatar = sdk.getComponent('avatars.MemberAvatar');
var BaseAvatar = sdk.getComponent('avatars.BaseAvatar');
@ -122,6 +131,7 @@ module.exports = React.createClass({
{av}
</div>
{ nameEl }
{ power }
{ inviteButton }
</div>
);