mirror of
https://github.com/Ocelot-Social-Community/Ocelot-Social.git
synced 2025-12-13 07:46:06 +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 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)
|
||||
|
||||
@ -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
|
||||
}
|
||||
|
||||
@ -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"
|
||||
},
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user