summaryrefslogtreecommitdiffstats
path: root/webapp/components/integrations
diff options
context:
space:
mode:
authorBrian Olecki <bolecki019@gmail.com>2016-10-31 09:12:42 -0400
committerChristopher Speller <crspeller@gmail.com>2016-10-31 09:12:42 -0400
commitba4033b4f7c0bf7bc569d7ecf040d68a4bc45544 (patch)
tree5c9a7c14e66ff751a4e816c199a2a001d769d774 /webapp/components/integrations
parentd67a2e1f0cdc62a89c39bb3a16adc4a6a4d05eeb (diff)
downloadchat-ba4033b4f7c0bf7bc569d7ecf040d68a4bc45544.tar.gz
chat-ba4033b4f7c0bf7bc569d7ecf040d68a4bc45544.tar.bz2
chat-ba4033b4f7c0bf7bc569d7ecf040d68a4bc45544.zip
Update title for Integrations and Custom Emojis (#4379)
Diffstat (limited to 'webapp/components/integrations')
-rw-r--r--webapp/components/integrations/components/integrations.jsx19
1 files changed, 19 insertions, 0 deletions
diff --git a/webapp/components/integrations/components/integrations.jsx b/webapp/components/integrations/components/integrations.jsx
index e0cc4da22..ad780b605 100644
--- a/webapp/components/integrations/components/integrations.jsx
+++ b/webapp/components/integrations/components/integrations.jsx
@@ -21,6 +21,25 @@ export default class Integrations extends React.Component {
};
}
+ constructor(props) {
+ super(props);
+
+ this.updateTitle = this.updateTitle.bind(this);
+ }
+
+ componentDidMount() {
+ this.updateTitle();
+ }
+
+ updateTitle() {
+ let currentSiteName = '';
+ if (global.window.mm_config.SiteName != null) {
+ currentSiteName = global.window.mm_config.SiteName;
+ }
+
+ document.title = Utils.localizeMessage('admin.sidebar.integrations', 'Integrations') + ' - ' + this.props.team.display_name + ' ' + currentSiteName;
+ }
+
render() {
const options = [];
const config = window.mm_config;