diff options
author | Elias Nahum <nahumhbl@gmail.com> | 2016-01-26 22:19:51 -0300 |
---|---|---|
committer | Elias Nahum <nahumhbl@gmail.com> | 2016-01-26 22:19:51 -0300 |
commit | 85d4ed21c73cf51f112ff944080e8bf54d53608a (patch) | |
tree | 3b1ee8ff37a881e2527e9d6dc2fff245a1c79203 /web/react/components/error_bar.jsx | |
parent | efc4d239e14707de27b149b76f1dd4065838410c (diff) | |
download | chat-85d4ed21c73cf51f112ff944080e8bf54d53608a.tar.gz chat-85d4ed21c73cf51f112ff944080e8bf54d53608a.tar.bz2 chat-85d4ed21c73cf51f112ff944080e8bf54d53608a.zip |
PLT-7: Refactoring frontend (chunk 1)
- System console sidebar
- Sytem console email settings
- Error Bar
- Loading Screen
- Select Team Modal
- Add npm mm-intl package
Diffstat (limited to 'web/react/components/error_bar.jsx')
-rw-r--r-- | web/react/components/error_bar.jsx | 17 |
1 files changed, 11 insertions, 6 deletions
diff --git a/web/react/components/error_bar.jsx b/web/react/components/error_bar.jsx index e93545c25..e9aa8197c 100644 --- a/web/react/components/error_bar.jsx +++ b/web/react/components/error_bar.jsx @@ -3,6 +3,16 @@ import ErrorStore from '../stores/error_store.jsx'; +// import mm-intl is required for the tool to be able to extract the messages +import {defineMessages} from 'mm-intl'; + +var messages = defineMessages({ + preview: { + id: 'error_bar.preview_mode', + defaultMessage: 'Preview Mode: Email notifications have not been configured' + } +}); + export default class ErrorBar extends React.Component { constructor() { super(); @@ -49,12 +59,7 @@ 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', - defaultMessage: 'Preview Mode: Email notifications have not been configured' - } - )}); + ErrorStore.storeLastError({message: this.props.intl.formatMessage(messages.preview)}); this.onErrorChange(); } } |