-
Notifications
You must be signed in to change notification settings - Fork 447
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Close user profile menu after menu entry is selected #3224
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@alisaismailati : Thanks for this PR. We gave this a group code review today. Overall, the code looks reasonable, though @atarix83 mentioned that he's surprised there's not an easier way to get ngbDropdown
to close properly after a click. Since you are both at 4Science though, I'll let you talk to determine if there's any other way to remove the EventEmitter
from this PR.
Beyond that, this just needs a manual check that it's working for others. The code looks reasonable as-is.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I've checked in deep and the changes look good to me
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍 Thanks @alisaismailati ! I've verified this fixes the bug.
Backport failed for Please cherry-pick the changes locally and resolve any conflicts. git fetch origin dspace-7_x
git worktree add -d .worktree/backport-3224-to-dspace-7_x origin/dspace-7_x
cd .worktree/backport-3224-to-dspace-7_x
git switch --create backport-3224-to-dspace-7_x
git cherry-pick -x fa0ec0bf0c375b2d55a72c0792eb7f2666dbd8da |
Successfully created backport PR for |
@alisaismailati : Would you be able to backport this to |
References
Description
After logging in, when the user opens the profile menu and selects an entry (e.g., "MyDSpace"), the menu closes automatically upon clicking. The user is then redirected to the selected page seamlessly.
Instructions for Reviewers
An event emitter is introduced in
UserMenuComponent
. When a list item is clicked, the event is emitted byds-base-user-menu
, signaling the logged-in dropdown to close.Include guidance for how to test or review your PR. Steps as mentioned in the description.
Checklist
main
branch of code (unless it is a backport or is fixing an issue specific to an older branch).yarn lint
yarn check-circ-deps
)package.json
), I've made sure their licenses align with the DSpace BSD License based on the Licensing of Contributions documentation.