summaryrefslogtreecommitdiffstats
path: root/webapp/components/admin_console/admin_sidebar_header.jsx
diff options
context:
space:
mode:
authorJoram Wilander <jwawilander@gmail.com>2017-06-14 08:56:56 -0400
committerHarrison Healey <harrisonmhealey@gmail.com>2017-06-14 08:56:56 -0400
commit1138dd67705829a6af0d6c610cf3dbe09082187c (patch)
tree23bdc3db76221bead172be1c51eb52a4987636f1 /webapp/components/admin_console/admin_sidebar_header.jsx
parent40efd8367a85e3333e9b7cc45c390259d412088c (diff)
downloadchat-1138dd67705829a6af0d6c610cf3dbe09082187c.tar.gz
chat-1138dd67705829a6af0d6c610cf3dbe09082187c.tar.bz2
chat-1138dd67705829a6af0d6c610cf3dbe09082187c.zip
PLT-6657 Move system console to use v4 endpoints and redux (#6572)
* Move system console to use v4 endpoints and redux * Rename logs dir to get past gitignore * Fix test email * Update brand unit test * Updates per feedback
Diffstat (limited to 'webapp/components/admin_console/admin_sidebar_header.jsx')
-rw-r--r--webapp/components/admin_console/admin_sidebar_header.jsx8
1 files changed, 3 insertions, 5 deletions
diff --git a/webapp/components/admin_console/admin_sidebar_header.jsx b/webapp/components/admin_console/admin_sidebar_header.jsx
index 87a1170dc..301186917 100644
--- a/webapp/components/admin_console/admin_sidebar_header.jsx
+++ b/webapp/components/admin_console/admin_sidebar_header.jsx
@@ -4,7 +4,7 @@
import $ from 'jquery';
import AdminNavbarDropdown from './admin_navbar_dropdown.jsx';
import UserStore from 'stores/user_store.jsx';
-import Client from 'client/web_client.jsx';
+import {Client4} from 'mattermost-redux/client';
import {FormattedMessage} from 'react-intl';
@@ -14,12 +14,10 @@ export default class SidebarHeader extends React.Component {
constructor(props) {
super(props);
- this.toggleDropdown = this.toggleDropdown.bind(this);
-
this.state = {};
}
- toggleDropdown(e) {
+ toggleDropdown = (e) => {
e.preventDefault();
if (this.refs.dropdown.blockToggle) {
@@ -42,7 +40,7 @@ export default class SidebarHeader extends React.Component {
profilePicture = (
<img
className='user__picture'
- src={Client.getUsersRoute() + '/' + me.id + '/image?time=' + me.last_picture_update}
+ src={Client4.getProfilePictureUrl(me.id, me.last_picture_update)}
/>
);
}