mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-08-06 05:14:21 -04:00
webui: added check for empty avatars and implemented avatar notify callback
git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@8551 b45a01b8-16f6-495d-af2f-9b41ad6348cc
This commit is contained in:
parent
0e1b3eac2e
commit
89187bd453
4 changed files with 28 additions and 5 deletions
|
@ -314,7 +314,7 @@ var Peers3 = React.createClass({
|
|||
return(<div key={loc.peer_id} style={{color: loc.is_online? "lime": "grey"}}>{/*<div style={online_style}></div>*/}{loc.location}</div>);
|
||||
});
|
||||
var avatars = this.props.data.locations.map(function(loc){
|
||||
if(loc.is_online)
|
||||
if(loc.is_online && (loc.avatar_address !== ""))
|
||||
{
|
||||
var avatar_url = api_url + component.getPath() + loc.avatar_address;
|
||||
return <img style={{borderRadius: "3mm", margin: "2mm"}} src={avatar_url}/>;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue