Fix "New Collection" button when My Publications is selected

Fixes #1955
This commit is contained in:
Dan Stillman 2021-02-25 18:29:49 -05:00
parent ba7f7e3250
commit 33528d0f36

View file

@ -1306,7 +1306,9 @@ var ZoteroPane = new function()
// Don't allow normal buttons in My Publications, because things need to // Don't allow normal buttons in My Publications, because things need to
// be dragged and go through the wizard // be dragged and go through the wizard
let forceDisable = collectionTreeRow.isPublications() && command != 'zotero-tb-note-add'; let forceDisable = collectionTreeRow.isPublications()
&& command != 'cmd_zotero_newCollection'
&& command != 'zotero-tb-note-add';
if ((collectionTreeRow.editable || overrideEditable) && !forceDisable) { if ((collectionTreeRow.editable || overrideEditable) && !forceDisable) {
if(el.hasAttribute("disabled")) el.removeAttribute("disabled"); if(el.hasAttribute("disabled")) el.removeAttribute("disabled");