commit 6d6afdd706a82d45303f27e0beb4f5b3fbc59e13
parent 0ebf49849a20ab65160c6baabe90b890dce5bfbd
Author: Dan Stillman <dstillman@zotero.org>
Date: Wed, 27 Apr 2016 03:14:51 -0400
Show correct quota message for personal library
Diffstat:
2 files changed, 3 insertions(+), 1 deletion(-)
diff --git a/chrome/content/zotero/xpcom/storage/zfs.js b/chrome/content/zotero/xpcom/storage/zfs.js
@@ -561,9 +561,10 @@ Zotero.Sync.Storage.Mode.ZFS.prototype = {
}
let text, buttonText = null, buttonCallback;
+ let libraryType = item.library.libraryType;
// Group file
- if (item.libraryID) {
+ if (libraryType == 'group') {
var group = Zotero.Groups.getByLibraryID(item.libraryID);
text = Zotero.getString('sync.storage.error.zfs.groupQuotaReached1', group.name) + "\n\n"
+ Zotero.getString('sync.storage.error.zfs.groupQuotaReached2');
diff --git a/test/tests/zfsTest.js b/test/tests/zfsTest.js
@@ -857,6 +857,7 @@ describe("Zotero.Sync.Storage.Mode.ZFS", function () {
assert.ok(e);
assert.equal(e.errorType, 'warning');
assert.include(e.message, 'test.png');
+ assert.equal(e.dialogButtonText, Zotero.getString('sync.storage.openAccountSettings'));
})
})
})