mirror of
https://github.com/IT4Change/Ocelot-Social.git
synced 2025-12-13 07:45:56 +00:00
implemented requested changes
This commit is contained in:
parent
1a6a2bd8c8
commit
cd7e519d4b
@ -28,7 +28,7 @@ describe('ImageUploader.vue', () => {
|
|||||||
const message = 'File upload failed'
|
const message = 'File upload failed'
|
||||||
const fileError = { status: 'error' }
|
const fileError = { status: 'error' }
|
||||||
const unSupportedFileMessage =
|
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', () => {
|
it('shows an error toaster when verror is called', () => {
|
||||||
wrapper.vm.onDropzoneError(fileError, message)
|
wrapper.vm.onDropzoneError(fileError, message)
|
||||||
|
|||||||
@ -87,7 +87,7 @@ export default {
|
|||||||
if (supportedFormats.indexOf(file.type) < 0) {
|
if (supportedFormats.indexOf(file.type) < 0) {
|
||||||
this.onUnSupportedFormat(
|
this.onUnSupportedFormat(
|
||||||
'error',
|
'error',
|
||||||
'Please upload an image of file format : jpg , jpeg , png or gif',
|
this.$t('contribution.teaserImage.errors.unSupported-file-format'),
|
||||||
)
|
)
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|||||||
@ -259,7 +259,10 @@
|
|||||||
"success": "Saved!",
|
"success": "Saved!",
|
||||||
"teaserImage": {
|
"teaserImage": {
|
||||||
"cropperConfirm": "Confirm",
|
"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"
|
"title": "Title"
|
||||||
},
|
},
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user