implemented requested changes

This commit is contained in:
dasari810 2020-11-03 01:04:28 +05:30
parent 1a6a2bd8c8
commit cd7e519d4b
3 changed files with 6 additions and 3 deletions

View File

@ -28,7 +28,7 @@ describe('ImageUploader.vue', () => {
const message = 'File upload failed'
const fileError = { status: 'error' }
const unSupportedFileMessage =
'Please upload an image of file format : jpg , jpeg , png or gif'
'Please upload an image of file format : JPG , JPEG , PNG or GIF'
it('shows an error toaster when verror is called', () => {
wrapper.vm.onDropzoneError(fileError, message)

View File

@ -87,7 +87,7 @@ export default {
if (supportedFormats.indexOf(file.type) < 0) {
this.onUnSupportedFormat(
'error',
'Please upload an image of file format : jpg , jpeg , png or gif',
this.$t('contribution.teaserImage.errors.unSupported-file-format'),
)
return
}

View File

@ -259,7 +259,10 @@
"success": "Saved!",
"teaserImage": {
"cropperConfirm": "Confirm",
"supportedFormats": "Insert a picture of file format JPG , PNG or GIF"
"supportedFormats": "Insert a picture of file format JPG , PNG or GIF",
"errors" : {
"unSupported-file-format" : "Please upload an image of file format : JPG , JPEG , PNG or GIF"
}
},
"title": "Title"
},