Skip to content
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

feat(ui5-user-menu): introduce new component #10244

Open
wants to merge 21 commits into
base: main
Choose a base branch
from

Conversation

dobromiraboycheva
Copy link
Member

@dobromiraboycheva dobromiraboycheva commented Nov 25, 2024

Thank you for your contribution! 👏

PR checklist

For example: fix(ui5-*): correct/fix sth or feat(ui5-*): add/introduce sth. If you don't want the change to be part of the release changelog - use chore, refactor or docs.

  • Add proper description about the background of the change and the change itself

  • Link to an existing issue (if available)

Use Fixes: {#PR_NUMBER} to close the issue automatically when the PR is merged
or Related to: {#PR_NUMBER} to just create a link between the PR and the issue.

packages/fiori/src/UserMenu.ts Outdated Show resolved Hide resolved
packages/fiori/src/UserMenu.ts Outdated Show resolved Hide resolved
packages/fiori/src/UserMenu.ts Outdated Show resolved Hide resolved
packages/fiori/src/UserMenu.ts Outdated Show resolved Hide resolved
packages/fiori/src/UserMenu.ts Outdated Show resolved Hide resolved
packages/fiori/src/UserMenuAccount.ts Outdated Show resolved Hide resolved
packages/fiori/src/UserMenuAccount.ts Outdated Show resolved Hide resolved
packages/fiori/src/UserMenuAccount.ts Outdated Show resolved Hide resolved
packages/fiori/src/i18n/messagebundle.properties Outdated Show resolved Hide resolved
packages/fiori/src/i18n/messagebundle.properties Outdated Show resolved Hide resolved
@adrian-bobev adrian-bobev changed the title Ui5 profile menu feat(ui5-user-menu): introduce new component Nov 25, 2024
packages/fiori/src/UserMenu.ts Outdated Show resolved Hide resolved
packages/fiori/src/UserMenu.ts Outdated Show resolved Hide resolved
});

if (!eventPrevented) {
item.fireEvent("close-menu");
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Custom events have description about their bubble, cancelable configurations. This means that we need to fire events via fireDecoratorEvent in order to apply these configurations

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

For some reason, it is not working. I guess because the MenuItem (which we extend) is still using the fireEvent. We can sync for that

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Most probably this will be resolved when the following PR is merged https://github.com/SAP/ui5-webcomponents/pull/10247/files

packages/fiori/src/UserMenuAccount.ts Outdated Show resolved Hide resolved
packages/fiori/src/UserMenuAccount.ts Outdated Show resolved Hide resolved
packages/fiori/src/UserMenuAccount.ts Outdated Show resolved Hide resolved
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants