Scaffold: Add tags to item preview

This commit is contained in:
Abe Jellinek 2025-04-15 14:25:00 -05:00
parent 173660d5c7
commit b067e0d940
2 changed files with 5 additions and 3 deletions

View file

@ -33,6 +33,7 @@
<abstract-box/>
<html:div class="attachments-preview"/>
<html:div class="notes-preview"/>
<tags-box/>
`);
_jsonItem = null;
@ -68,10 +69,11 @@
if (!this.initialized) return;
let zoteroItem = new Zotero.Item();
zoteroItem.libraryID = Zotero.Libraries.userLibraryID;
zoteroItem.fromJSON(this._jsonItem);
let [diffBox, infoBox, abstractBox, attachmentsPreview, notesPreview] = this.children;
for (let box of [infoBox, abstractBox]) {
let [diffBox, infoBox, abstractBox, attachmentsPreview, notesPreview, tagsBox] = this.children;
for (let box of [infoBox, abstractBox, tagsBox]) {
box.mode = 'view';
box.editable = false;
box.item = zoteroItem;

View file

@ -307,7 +307,7 @@ scaffold-item-preview {
}
}
info-box, abstract-box {
info-box, abstract-box, tags-box {
collapsible-section > .head {
display: none;
}