- Second half of ZFS quota message wasn't being shown in dialog
- Display filename of file that would put user over quota
This commit is contained in:
parent
a081315876
commit
a815fefa28
1 changed files with 5 additions and 2 deletions
|
@ -492,12 +492,12 @@ Zotero.Sync.Storage.Session.ZFS.prototype._getFileUploadParameters = function (i
|
||||||
if (item.libraryID) {
|
if (item.libraryID) {
|
||||||
var group = Zotero.Groups.getByLibraryID(item.libraryID);
|
var group = Zotero.Groups.getByLibraryID(item.libraryID);
|
||||||
text = Zotero.getString('sync.storage.error.zfs.groupQuotaReached1', group.name) + "\n\n"
|
text = Zotero.getString('sync.storage.error.zfs.groupQuotaReached1', group.name) + "\n\n"
|
||||||
Zotero.getString('sync.storage.error.zfs.groupQuotaReached2');
|
+ Zotero.getString('sync.storage.error.zfs.groupQuotaReached2');
|
||||||
}
|
}
|
||||||
// Personal file
|
// Personal file
|
||||||
else {
|
else {
|
||||||
text = Zotero.getString('sync.storage.error.zfs.personalQuotaReached1') + "\n\n"
|
text = Zotero.getString('sync.storage.error.zfs.personalQuotaReached1') + "\n\n"
|
||||||
Zotero.getString('sync.storage.error.zfs.personalQuotaReached2');
|
+ Zotero.getString('sync.storage.error.zfs.personalQuotaReached2');
|
||||||
buttonText = Zotero.getString('sync.storage.openAccountSettings');
|
buttonText = Zotero.getString('sync.storage.openAccountSettings');
|
||||||
buttonCallback = function () {
|
buttonCallback = function () {
|
||||||
var url = "https://www.zotero.org/settings/storage";
|
var url = "https://www.zotero.org/settings/storage";
|
||||||
|
@ -510,6 +510,9 @@ Zotero.Sync.Storage.Session.ZFS.prototype._getFileUploadParameters = function (i
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// TODO: localize
|
||||||
|
text += "\n\n" + filename + " (" + Math.round(file.fileSize / 1024) + "KB)";
|
||||||
|
|
||||||
Zotero.debug(req.responseText);
|
Zotero.debug(req.responseText);
|
||||||
|
|
||||||
var e = new Zotero.Error(
|
var e = new Zotero.Error(
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue