From 6d6afdd706a82d45303f27e0beb4f5b3fbc59e13 Mon Sep 17 00:00:00 2001 From: Dan Stillman Date: Wed, 27 Apr 2016 03:14:51 -0400 Subject: [PATCH] Show correct quota message for personal library --- chrome/content/zotero/xpcom/storage/zfs.js | 3 ++- test/tests/zfsTest.js | 1 + 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 index e1a9395141..04cca4cb89 100644 --- 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 index 948d405ca8..1515be0075 100644 --- 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')); }) }) })