diff options
author | Christopher Speller <crspeller@gmail.com> | 2015-07-13 14:36:27 -0400 |
---|---|---|
committer | Christopher Speller <crspeller@gmail.com> | 2015-07-13 14:36:27 -0400 |
commit | e38ea318a1287710313a0c86fecb76dff8a923aa (patch) | |
tree | 79a5158a3036563eb45852293f0c5a4af1a196b7 /web/react/components/member_list_team.jsx | |
parent | d2602f540c953ffea2e622ed4c699ab44eadd087 (diff) | |
parent | aff43f43f8185ae6d5555ca9f99bfcc4bd3eb99e (diff) | |
download | chat-e38ea318a1287710313a0c86fecb76dff8a923aa.tar.gz chat-e38ea318a1287710313a0c86fecb76dff8a923aa.tar.bz2 chat-e38ea318a1287710313a0c86fecb76dff8a923aa.zip |
Merge pull request #158 from nickago/MM-975
MM-975 Added timestamps to pictures to stop caching
Diffstat (limited to 'web/react/components/member_list_team.jsx')
-rw-r--r-- | web/react/components/member_list_team.jsx | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/web/react/components/member_list_team.jsx b/web/react/components/member_list_team.jsx index cfb473e5e..aa53c5db6 100644 --- a/web/react/components/member_list_team.jsx +++ b/web/react/components/member_list_team.jsx @@ -61,7 +61,8 @@ var MemberListTeamItem = React.createClass({ render: function() { var server_error = this.state.server_error ? <div style={{ clear: "both" }} className="has-error"><label className='has-error control-label'>{this.state.server_error}</label></div> : null; var user = this.props.user; - var currentRoles = "Member" + var currentRoles = "Member"; + var timestamp = UserStore.getCurrentUser().update_at; if (user.roles.length > 0) { currentRoles = user.roles.charAt(0).toUpperCase() + user.roles.slice(1); @@ -83,7 +84,7 @@ var MemberListTeamItem = React.createClass({ return ( <div className="row member-div"> - <img className="post-profile-img pull-left" src={"/api/v1/users/" + user.id + "/image"} height="36" width="36" /> + <img className="post-profile-img pull-left" src={"/api/v1/users/" + user.id + "/image?time=" + timestamp} height="36" width="36" /> <span className="member-name">{user.full_name.trim() ? user.full_name : user.username}</span> <span className="member-email">{user.full_name.trim() ? user.username : email}</span> <div className="dropdown member-drop"> |