Update title for Integrations and Custom Emojis (#4379)

Этот коммит содержится в:
Brian Olecki
2016-10-31 09:12:42 -04:00
коммит произвёл Christopher Speller
родитель d67a2e1f0c
Коммит ba4033b4f7
2 изменённых файлов: 32 добавлений и 0 удалений

Просмотреть файл

@@ -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;