summaryrefslogtreecommitdiffstats
path: root/web/react/components/user_profile.jsx
diff options
context:
space:
mode:
authorChristopher Speller <crspeller@gmail.com>2015-09-16 12:52:50 -0400
committerChristopher Speller <crspeller@gmail.com>2015-09-16 12:52:50 -0400
commit7e418714bce067172e527359f391943459b3bd48 (patch)
treefb06d542eddb5ce8d63fce27bfe87f6c9c63adbb /web/react/components/user_profile.jsx
parent9828d84f01147ffb87b372d20681f91325ecfcf0 (diff)
parent4e3896d7b1911b8c184dee3c650461f0d3c0acea (diff)
downloadchat-7e418714bce067172e527359f391943459b3bd48.tar.gz
chat-7e418714bce067172e527359f391943459b3bd48.tar.bz2
chat-7e418714bce067172e527359f391943459b3bd48.zip
Merge pull request #687 from mattermost/PLT-93
PLT-93 Cleaning up client side configs
Diffstat (limited to 'web/react/components/user_profile.jsx')
-rw-r--r--web/react/components/user_profile.jsx3
1 files changed, 1 insertions, 2 deletions
diff --git a/web/react/components/user_profile.jsx b/web/react/components/user_profile.jsx
index 739084053..7cfac69e7 100644
--- a/web/react/components/user_profile.jsx
+++ b/web/react/components/user_profile.jsx
@@ -3,7 +3,6 @@
var Utils = require('../utils/utils.jsx');
var UserStore = require('../stores/user_store.jsx');
-import {config} from '../utils/config.js';
var id = 0;
@@ -58,7 +57,7 @@ export default class UserProfile extends React.Component {
}
var dataContent = '<img class="user-popover__image" src="/api/v1/users/' + this.state.profile.id + '/image?time=' + this.state.profile.update_at + '" height="128" width="128" />';
- if (!config.ShowEmail) {
+ if (!global.window.config.ShowEmailAddress) {
dataContent += '<div class="text-nowrap">Email not shared</div>';
} else {
dataContent += '<div data-toggle="tooltip" title="' + this.state.profile.email + '"><a href="mailto:' + this.state.profile.email + '" class="text-nowrap text-lowercase user-popover__email">' + this.state.profile.email + '</a></div>';