Only display a notification on the sidebarToggle
-button, and not the individual view-buttons (PR 7959 follow-up)
#12871
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
The whole purpose of showing a notification on the
sidebarToggle
button, when the sidebar is closed, was to give users some kind of indication that the PDF document contains outline/attachments/layers without having to manually open the sidebar to check.However, in the implementation in PR #7959, I also added notifications for each view-buttons in the sidebar. Looking back at this, I've always questioned the value of the last part, since the view-buttons already have a
disabled
-state which shows if they're available or not. Hence we're actually, in a sense, duplicating notifications for the outline/attachments/layers-buttons without adding (in my opinion) all that much overall value.All-in-all, I'm thus proposing that we only display the notification on the
sidebarToggle
-button itself, since that should really be sufficient here, which also allows us to simplify the relevant code a fair bit.