Describe the bug
There are two toggles for Discussion Forum attachments, the "Attachments" button and the "More" button > "Show Attachments" dropdown item. When using both together, content may not be toggled correctly based on the text shown to the user and the current state of the content.
This is a common bug in programs that have multiple toggles for the same content. This should be fixed so that it works as intended and accurate text is shown to the user.
Expected behavior
Dropdown item text, specifically where the text changes based on the content current state ("Show Attachments" or "Hide Attachments"), should be updated on content toggle to reflect the accurate state of the content. This issue should also be fixed for all applicable contexts throughout Submitty.
To Reproduce
Steps to reproduce the behavior:
- Open Submitty
- Navigate to course with Discussion Forum
- Navigate to course Discussion Forum
- Open an existing thread with at least one attachment
- Click the "More" button > "Show Attachments" dropdown item
- Click the "Attachments" button
- Click the "More" button
- See error
Configuration
Screenshots
Bug

No bug 1

No bug 2

No bug 3

Additional context
N/A
Describe the bug
There are two toggles for Discussion Forum attachments, the "Attachments" button and the "More" button > "Show Attachments" dropdown item. When using both together, content may not be toggled correctly based on the text shown to the user and the current state of the content.
This is a common bug in programs that have multiple toggles for the same content. This should be fixed so that it works as intended and accurate text is shown to the user.
Expected behavior
Dropdown item text, specifically where the text changes based on the content current state ("Show Attachments" or "Hide Attachments"), should be updated on content toggle to reflect the accurate state of the content. This issue should also be fixed for all applicable contexts throughout Submitty.
To Reproduce
Steps to reproduce the behavior:
Configuration
Screenshots
Bug
No bug 1
No bug 2
No bug 3
Additional context
N/A