Only show "Find Available PDF" in dev builds

This commit is contained in:
Dan Stillman 2018-08-09 04:37:00 -04:00
parent c7076ab935
commit 2b6d24bc75
2 changed files with 5 additions and 3 deletions

View file

@ -72,7 +72,7 @@ var Zotero_Lookup = new function () {
if (Zotero.Prefs.get('downloadAssociatedFiles') if (Zotero.Prefs.get('downloadAssociatedFiles')
&& !newItems.find(x => x.isImportedAttachment()) && !newItems.find(x => x.isImportedAttachment())
// TEMP: Limit to dev builds // TEMP: Limit to dev builds
&& (Zotero.version.includes('beta') || Zotero.version.includes('SOURCE'))) { && Zotero.isDevBuild) {
try { try {
yield Zotero.Attachments.addAvailablePDF(newItems[0]); yield Zotero.Attachments.addAvailablePDF(newItems[0]);
} }

View file

@ -2881,7 +2881,8 @@ var ZoteroPane = new function()
} }
} }
if (canFindPDF) { // TEMP: Limit to dev builds
if (canFindPDF && Zotero.isDevBuild) {
show.push(m.findPDF, m.sep3); show.push(m.findPDF, m.sep3);
} }
@ -2940,7 +2941,8 @@ var ZoteroPane = new function()
show.push(m.addNote, m.addAttachments, m.sep2); show.push(m.addNote, m.addAttachments, m.sep2);
} }
if (Zotero.Utilities.Internal.canFindPDFForItem(item)) { // TEMP: Limit to dev builds
if (Zotero.Attachments.canFindPDFForItem(item) && Zotero.isDevBuild) {
show.push(m.findPDF, m.sep3); show.push(m.findPDF, m.sep3);
} }