always open duplicatesPane itembox (#4323)

Since the header of the collapsible section is not visible,
there is no way to expand the itemBox if it was collapsed
before dulicate items are selected. With this, itembox
is always opened when a new set of duplicate items is selected.

Fixes: #4318
This commit is contained in:
abaevbog 2024-07-02 22:58:04 -07:00 committed by GitHub
parent f6a0ea6282
commit 668c84fed5
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -139,6 +139,8 @@
button.label = Zotero.getString('pane.item.duplicates.mergeItems', (otherItems.length + 1));
versionSelect.hidden = fieldSelect.hidden = !alternatives;
itembox.hiddenFields = alternatives ? [] : ['dateAdded', 'dateModified'];
// Since the header of the collapsible section is hidden, the section has to be opened
itembox.open = true;
this.setMaster(0);