diff options
author | Harrison Healey <harrisonmhealey@gmail.com> | 2017-07-14 13:01:19 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-07-14 13:01:19 -0400 |
commit | 8fb58b1fc9f38db22beca42dcd3e692fe5b547ba (patch) | |
tree | e05e70c4fe7a1f42ef599af0594a8f0fa414a33e | |
parent | 5c3c909c8541f26ae09577338d2302bed2a2f3a9 (diff) | |
download | chat-8fb58b1fc9f38db22beca42dcd3e692fe5b547ba.tar.gz chat-8fb58b1fc9f38db22beca42dcd3e692fe5b547ba.tar.bz2 chat-8fb58b1fc9f38db22beca42dcd3e692fe5b547ba.zip |
PLT-7117 Fixed copy paste error in file_actions.jsx (#6928)
-rw-r--r-- | webapp/actions/file_actions.jsx | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/webapp/actions/file_actions.jsx b/webapp/actions/file_actions.jsx index 9a565a07c..1d9617901 100644 --- a/webapp/actions/file_actions.jsx +++ b/webapp/actions/file_actions.jsx @@ -6,6 +6,8 @@ import request from 'superagent'; import store from 'stores/redux_store.jsx'; +import * as Utils from 'utils/utils.jsx'; + import {FileTypes} from 'mattermost-redux/action_types'; import {forceLogoutIfNecessary} from 'mattermost-redux/actions/helpers'; import {getLogErrorAction} from 'mattermost-redux/actions/errors'; @@ -20,9 +22,9 @@ export function uploadFile(file, name, channelId, clientId, successCallback, err if (res && res.body && res.body.id) { e = res.body; } else if (err.status === 0 || !err.status) { - e = {message: this.translations.connectionError}; + e = {message: Utils.localizeMessage('channel_loader.connection_error', 'There appears to be a problem with your internet connection.')}; } else { - e = {message: this.translations.unknownError + ' (' + err.status + ')'}; + e = {message: Utils.localizeMessage('channel_loader.unknown_error', 'We received an unexpected status code from the server.') + ' (' + err.status + ')'}; } forceLogoutIfNecessary(err, dispatch); |