Show correct quota message for personal library
This commit is contained in:
parent
0ebf49849a
commit
6d6afdd706
2 changed files with 3 additions and 1 deletions
|
@ -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');
|
||||
|
|
|
@ -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'));
|
||||
})
|
||||
})
|
||||
})
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue