Use commas in file size in over-quota error
This commit is contained in:
parent
d2c9a310a8
commit
ce0f7c0378
1 changed files with 3 additions and 1 deletions
|
@ -1076,7 +1076,9 @@ Zotero.Sync.Storage.Mode.ZFS.prototype = {
|
|||
var filename = item.attachmentFilename;
|
||||
var fileSize = (await OS.File.stat(item.getFilePath())).size;
|
||||
|
||||
text += "\n\n" + filename + " (" + Math.round(fileSize / 1024) + " KB)";
|
||||
text += "\n\n" + filename
|
||||
// TODO: Format more intelligently (e.g., use MB or GB for large files)
|
||||
+ " (" + Zotero.Utilities.numberFormat(Math.round(fileSize / 1024), 0) + " KB)";
|
||||
|
||||
var e = new Zotero.Error(
|
||||
text,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue