pull/4142/head
mertsincan 2023-09-05 03:10:05 +01:00
parent 430958237d
commit 99cb003d4d
3 changed files with 3 additions and 3 deletions

View File

@ -54,7 +54,7 @@ export default {
formatSize(bytes) {
const k = 1024;
const dm = 3;
const sizes = this.$primevue.config.locale.fileSizeTypes;
const sizes = this.$primevue.config.locale?.fileSizeTypes;
if (bytes === 0) {
return `0 ${sizes[0]}`;

View File

@ -328,7 +328,7 @@ export default {
formatSize(bytes) {
const k = 1024;
const dm = 3;
const sizes = this.$primevue.config.locale.fileSizeTypes;
const sizes = this.$primevue.config.locale?.fileSizeTypes;
if (bytes === 0) {
return `0 ${sizes[0]}`;

View File

@ -317,7 +317,7 @@ const onTemplatedUpload = () => {
toast.add({ severity: "info", summary: "Success", detail: "File Uploaded", life: 3000 });
};
formatSize(bytes) {
const formatSize = (bytes) => {
const k = 1024;
const dm = 3;
const sizes = this.$primevue.config.locale.fileSizeTypes;