Show correct quota message for personal library

This commit is contained in:
Dan Stillman 2016-04-27 03:14:51 -04:00
parent 0ebf49849a
commit 6d6afdd706
2 changed files with 3 additions and 1 deletions

View file

@ -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');

View file

@ -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'));
})
})
})