Make ZFS file syncing always enabled for publications library for now

At least until we have a better interface for setting library-specific
sync settings

Previously, if My Library file syncing was disabled or set to WebDAV, My
Publications files wouldn't be uploaded.
This commit is contained in:
Dan Stillman 2017-01-27 14:14:33 -05:00
parent 27974791b0
commit 22d460312c

View file

@ -16,9 +16,13 @@ Zotero.Sync.Storage.Local = {
var libraryType = Zotero.Libraries.get(libraryID).libraryType;
switch (libraryType) {
case 'user':
case 'publications':
return Zotero.Prefs.get("sync.storage.enabled");
// TEMP: Always sync publications files, at least until we have a better interface for
// setting library-specific settings
case 'publications':
return true;
case 'group':
return Zotero.Prefs.get("sync.storage.groups.enabled");
@ -38,11 +42,12 @@ Zotero.Sync.Storage.Local = {
var libraryType = Zotero.Libraries.get(libraryID).libraryType;
switch (libraryType) {
case 'user':
case 'publications':
case 'feed':
return Zotero.Prefs.get("sync.storage.protocol") == 'webdav' ? 'webdav' : 'zfs';
case 'publications':
case 'group':
// TODO: Remove after making sure this is never called for feed libraries
case 'feed':
return 'zfs';
default: