Libraries & Collections: Make all collections clickable in context pane
Fixes #4201
This commit is contained in:
parent
5539bd50ce
commit
4d7c641f7b
1 changed files with 2 additions and 1 deletions
|
@ -138,7 +138,8 @@ import { getCSSIcon } from 'components/icons';
|
||||||
row.append(remove);
|
row.append(remove);
|
||||||
}
|
}
|
||||||
|
|
||||||
let isCurrent = ZoteroPane.collectionsView.selectedTreeRow?.id == obj.treeViewID;
|
let isCurrent = Zotero_Tabs.selectedType === 'library'
|
||||||
|
&& ZoteroPane.collectionsView.selectedTreeRow?.id == obj.treeViewID;
|
||||||
box.classList.toggle('current', isCurrent);
|
box.classList.toggle('current', isCurrent);
|
||||||
|
|
||||||
// Disable clicky if this is a context row or we're already in the library/collection it points to
|
// Disable clicky if this is a context row or we're already in the library/collection it points to
|
||||||
|
|
Loading…
Reference in a new issue