Fix "Hide" label sticking on the collection context menu's Delete item
Some checks are pending
CI / Detect changes (push) Waiting to run
CI / Test () (push) Blocked by required conditions
CI / Test (macOS NFS) (push) Blocked by required conditions
CI / Test (Windows arm64) (push) Blocked by required conditions
CI / Test (Windows x64) (push) Blocked by required conditions
CI / Utilities Tests (push) Waiting to run
CI / Build, Upload (push) Waiting to run

After the menu was built for a hideable row (My Publications, Unfiled
Items, etc.), the Delete Collection/Search item kept showing "Hide" for
collections and saved searches. Set "Hide" via Fluent like the other
labels.

https://forums.zotero.org/discussion/134097/
This commit is contained in:
Dan Stillman 2026-10-12 23:08:50 -04:00
parent f483c80f36
commit 59aaf8dfef
3 changed files with 5 additions and 3 deletions

View file

@ -4094,14 +4094,14 @@ var ZoteroPane = new function () {
show.push('clearAllLastRead');
}
m.deleteCollection.setAttribute('label', Zotero.getString('general.hide'));
document.l10n.setAttributes(m.deleteCollection, 'collections-menu-hide');
useHideOrDelete = "hide";
}
else if (collectionTreeRows[0].isHeader()) {
}
else if (collectionTreeRows[0].isPublications()) {
show = ['exportFile', 'deleteCollection'];
m.deleteCollection.setAttribute('label', Zotero.getString('general.hide'));
document.l10n.setAttributes(m.deleteCollection, 'collections-menu-hide');
useHideOrDelete = "hide";
}
// Library

View file

@ -66,6 +66,7 @@ general-copy = Copy
general-paste = Paste
general-find = Find
general-delete = Delete
general-hide = Hide
general-insert = Insert
general-and = and
general-et-al = et al.
@ -276,6 +277,8 @@ collections-menu-delete-search =
[one] Delete Search…
*[other] Delete Searches…
}
collections-menu-hide =
.label = { general-hide }
collections-delete-title =
{ $count ->

View file

@ -56,7 +56,6 @@ general.enable = Enable
general.disable = Disable
general.remove = Remove
general.reset = Reset
general.hide = Hide
general.quit = Quit
general.useDefault = Use Default
general.openDocumentation = Open Documentation