mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2025-10-09 21:36:44 +08:00
My profile - avatar size fixes [SCI-1088]
This commit is contained in:
parent
e3f4d38424
commit
b93edac3b9
1 changed files with 6 additions and 1 deletions
|
@ -159,7 +159,12 @@ function filesSizeValidator(ev, fileInputs, fileTypeEnum) {
|
||||||
})
|
})
|
||||||
|
|
||||||
if (size > fileTypeEnum) {
|
if (size > fileTypeEnum) {
|
||||||
return "<%= I18n.t('general.file.total_size', size: Constants::FILE_MAX_SIZE_MB) %>".strToErrorFormat();
|
switch (fileTypeEnum) {
|
||||||
|
case FileTypeEnum.FILE:
|
||||||
|
return "<%= I18n.t('general.file.total_size', size: Constants::FILE_MAX_SIZE_MB) %>".strToErrorFormat();
|
||||||
|
case FileTypeEnum.AVATAR:
|
||||||
|
return "<%= I18n.t('general.file.total_size', size: Constants::AVATAR_MAX_SIZE_MB) %>".strToErrorFormat();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue