From bd451196b049b3d005c341ff73c265e686ca4a9b Mon Sep 17 00:00:00 2001 From: Abe Jellinek Date: Tue, 15 Apr 2025 14:25:14 -0500 Subject: [PATCH] Tags box: Disable Remove All Tags when not editable --- chrome/content/zotero/elements/tagsBox.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/chrome/content/zotero/elements/tagsBox.js b/chrome/content/zotero/elements/tagsBox.js index 19ff43b2a0..430f08b160 100644 --- a/chrome/content/zotero/elements/tagsBox.js +++ b/chrome/content/zotero/elements/tagsBox.js @@ -60,7 +60,7 @@ let removeAllItemTags = this._id('remove-all-item-tags'); this._id('remove-all-item-tags').addEventListener('command', this.removeAll); this.querySelector('.body').addEventListener('contextmenu', (event) => { - removeAllItemTags.disabled = !this.count; + removeAllItemTags.disabled = !this.editable || !this.count; this._id('tags-context-menu').openPopupAtScreen(event.screenX, event.screenY, true); }); // Register our observer with priority 101 (after Zotero.Tags) so we get updated tag colors