diff options
author | Brian Olecki <bolecki019@gmail.com> | 2016-10-31 09:12:42 -0400 |
---|---|---|
committer | Christopher Speller <crspeller@gmail.com> | 2016-10-31 09:12:42 -0400 |
commit | ba4033b4f7c0bf7bc569d7ecf040d68a4bc45544 (patch) | |
tree | 5c9a7c14e66ff751a4e816c199a2a001d769d774 /webapp/components/emoji | |
parent | d67a2e1f0cdc62a89c39bb3a16adc4a6a4d05eeb (diff) | |
download | chat-ba4033b4f7c0bf7bc569d7ecf040d68a4bc45544.tar.gz chat-ba4033b4f7c0bf7bc569d7ecf040d68a4bc45544.tar.bz2 chat-ba4033b4f7c0bf7bc569d7ecf040d68a4bc45544.zip |
Update title for Integrations and Custom Emojis (#4379)
Diffstat (limited to 'webapp/components/emoji')
-rw-r--r-- | webapp/components/emoji/components/emoji_list.jsx | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/webapp/components/emoji/components/emoji_list.jsx b/webapp/components/emoji/components/emoji_list.jsx index 76c509f12..a539a5537 100644 --- a/webapp/components/emoji/components/emoji_list.jsx +++ b/webapp/components/emoji/components/emoji_list.jsx @@ -27,6 +27,8 @@ export default class EmojiList extends React.Component { constructor(props) { super(props); + this.updateTitle = this.updateTitle.bind(this); + this.handleEmojiChange = this.handleEmojiChange.bind(this); this.handleUserChange = this.handleUserChange.bind(this); this.deleteEmoji = this.deleteEmoji.bind(this); @@ -47,6 +49,17 @@ export default class EmojiList extends React.Component { if (window.mm_config.EnableCustomEmoji === 'true') { loadEmoji(); } + + this.updateTitle(); + } + + updateTitle() { + let currentSiteName = ''; + if (global.window.mm_config.SiteName != null) { + currentSiteName = global.window.mm_config.SiteName; + } + + document.title = Utils.localizeMessage('custom_emoji.header', 'Custom Emoji') + ' - ' + this.props.team.display_name + ' ' + currentSiteName; } componentWillUnmount() { |