mirror of
https://github.com/mattermost/mattermost.git
synced 2026-10-24 12:05:24 +08:00
Cleaning up
This commit is contained in:
@@ -49,7 +49,11 @@ export default class ErrorBar extends React.Component {
|
||||
|
||||
componentWillMount() {
|
||||
if (global.window.mm_config.SendEmailNotifications === 'false') {
|
||||
ErrorStore.storeLastError({message: this.props.intl.formatMessage({id: 'error_bar.preview_mode'})});
|
||||
ErrorStore.storeLastError({message: this.props.intl.formatMessage(
|
||||
{
|
||||
id: 'error_bar.preview_mode',
|
||||
defaultMessage: 'Preview Mode: Email notifications have not been configured'
|
||||
})});
|
||||
this.onErrorChange();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user