diff options
author | =Corey Hulen <corey@hulen.com> | 2015-09-15 18:59:14 -0700 |
---|---|---|
committer | =Corey Hulen <corey@hulen.com> | 2015-09-15 18:59:14 -0700 |
commit | b2a679c25da42c4665059965830858da4f0ec238 (patch) | |
tree | 831b04b0453a67dc291e08e091ffdb497d187922 /web/react/components/user_profile.jsx | |
parent | 788fc4373b8d22930b3420f7906e626e2bd63394 (diff) | |
download | chat-b2a679c25da42c4665059965830858da4f0ec238.tar.gz chat-b2a679c25da42c4665059965830858da4f0ec238.tar.bz2 chat-b2a679c25da42c4665059965830858da4f0ec238.zip |
PLT-93 cleaing up client side configs
Diffstat (limited to 'web/react/components/user_profile.jsx')
-rw-r--r-- | web/react/components/user_profile.jsx | 3 |
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..ad94df288 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.ShowEmail) { 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>'; |