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:
parent
27974791b0
commit
22d460312c
1 changed files with 8 additions and 3 deletions
|
@ -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:
|
||||
|
|
Loading…
Add table
Reference in a new issue