summaryrefslogtreecommitdiffstats
path: root/web/react
diff options
context:
space:
mode:
authorCorey Hulen <corey@hulen.com>2016-02-04 07:54:39 -0800
committerCorey Hulen <corey@hulen.com>2016-02-04 07:54:39 -0800
commitb8f49ed9d4a700853ec9a441b642a9b2fc8022ab (patch)
tree99b58315258c5263ce76c3cc56b4bcb75368c24b /web/react
parent5e83be02baceca6f386115fe20475f593c90ee3c (diff)
parentf9ce99bdcf5f8b17785c85ec1ae24a73bc6bc98e (diff)
downloadchat-b8f49ed9d4a700853ec9a441b642a9b2fc8022ab.tar.gz
chat-b8f49ed9d4a700853ec9a441b642a9b2fc8022ab.tar.bz2
chat-b8f49ed9d4a700853ec9a441b642a9b2fc8022ab.zip
Merge pull request #2069 from hmhealey/localization
Fixed localization issues in file_upload.jsx
Diffstat (limited to 'web/react')
-rw-r--r--web/react/components/file_upload.jsx6
1 files changed, 3 insertions, 3 deletions
diff --git a/web/react/components/file_upload.jsx b/web/react/components/file_upload.jsx
index 626dbc5b3..746289653 100644
--- a/web/react/components/file_upload.jsx
+++ b/web/react/components/file_upload.jsx
@@ -101,9 +101,9 @@ class FileUpload extends React.Component {
} else if (tooLargeFiles.length > 1) {
var tooLargeFilenames = tooLargeFiles.map((file) => file.name).join(', ');
- this.props.onUploadError(formatMessage(holders.filesAbove, {max: (Constants.MAX_FILE_SIZE / 1000000), files: tooLargeFilenames}));
+ this.props.onUploadError(formatMessage(holders.filesAbove, {max: (Constants.MAX_FILE_SIZE / 1000000), filenames: tooLargeFilenames}));
} else if (tooLargeFiles.length > 0) {
- this.props.onUploadError(formatMessage(holders.fileAbove, {max: (Constants.MAX_FILE_SIZE / 1000000), file: tooLargeFiles[0].name}));
+ this.props.onUploadError(formatMessage(holders.fileAbove, {max: (Constants.MAX_FILE_SIZE / 1000000), filename: tooLargeFiles[0].name}));
}
}
@@ -329,4 +329,4 @@ FileUpload.propTypes = {
postType: React.PropTypes.string
};
-export default injectIntl(FileUpload); \ No newline at end of file
+export default injectIntl(FileUpload);