Add 'archived' property to Zotero.Library objects

Set when a user loses access to a library but chooses to keep it as a
read-only library.
This commit is contained in:
Dan Stillman 2017-02-24 00:13:11 -05:00
parent 88184b341b
commit 9ac458e05c
5 changed files with 53 additions and 4 deletions

View file

@ -311,6 +311,7 @@ var createGroup = Zotero.Promise.coroutine(function* (props = {}) {
if (props.libraryVersion) {
group.libraryVersion = props.libraryVersion;
}
group.archived = props.archived === undefined ? false : props.archived;
yield group.saveTx();
return group;
});