diff options
| author | rinpatch <rinpatch@sdf.org> | 2018-12-08 22:36:54 +0100 |
|---|---|---|
| committer | rinpatch <rinpatch@sdf.org> | 2018-12-08 22:36:54 +0100 |
| commit | f69331e49d19a26be27d1188f721703fe04a493d (patch) | |
| tree | e4cd6b4822bb5249ee7b1bf2977361a494ab4185 /src/components/post_status_form | |
| parent | 788383d8a1e10abe7f9848b95bf7eb284f1113cd (diff) | |
Improve error messages
Diffstat (limited to 'src/components/post_status_form')
| -rw-r--r-- | src/components/post_status_form/post_status_form.js | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/components/post_status_form/post_status_form.js b/src/components/post_status_form/post_status_form.js index f7ba3cd5..5f092da3 100644 --- a/src/components/post_status_form/post_status_form.js +++ b/src/components/post_status_form/post_status_form.js @@ -262,9 +262,9 @@ const PostStatusForm = { let index = this.newStatus.files.indexOf(fileInfo) this.newStatus.files.splice(index, 1) }, - uploadFailed (errString) { - errString = errString || 'upload_error' - this.error = this.$t('post_status.' + errString) + uploadFailed (errString, templateArgs) { + templateArgs = templateArgs || {}; + this.error = this.$t('post_status.upload_error') + ' ' + this.$t('post_status.' + errString, templateArgs) this.enableSubmit() }, disableSubmit () { |
