Prevent pinning Notes button in reader sidenav

Sidenav button pane IDs usually correspond to sections with the same
IDs, but `context-notes` actually corresponds to two sections
(`context-all-notes` and `context-item-notes`). We were preventing
those sections from being pinned, but not the button that reveals them.

Fixes #4283
This commit is contained in:
Abe Jellinek 2024-06-26 11:17:17 -04:00
parent 10b248d68d
commit 4eb4741795

View file

@ -187,7 +187,7 @@
}
isPanePinnable(id) {
return id !== 'info' && id !== 'context-all-notes' && id !== 'context-item-notes';
return id !== 'info' && id !== 'context-notes' && id !== 'context-all-notes' && id !== 'context-item-notes';
}
init() {