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 show-edit-button property #10619

Merged
merged 6 commits into from
Jan 28, 2025

Conversation

dobromiraboycheva
Copy link
Member

@dobromiraboycheva dobromiraboycheva commented Jan 22, 2025

Fixes #10599
Introducing show-edit-button property into the <ui5-user-menu> web component.
The show-edit-button property allows you to show the icon for editing on top of avatar.
The default value of show-edit-button property is false.

@dobromiraboycheva dobromiraboycheva force-pushed the user-menu-edit-avar-button branch from 055df9f to ee6c722 Compare January 22, 2025 10:54
* @since 2.7.0
*/
@property({ type: Boolean })
hideEditAvatar = false;
Copy link
Member

@ilhan007 ilhan007 Jan 22, 2025

Choose a reason for hiding this comment

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

Is it only applicable for the UserMenuAccount or it's more than that, because we can discuss if it belongs here or to the UserMenuAccount

Copy link
Member Author

Choose a reason for hiding this comment

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

it is applied to the avatar in the user menu but in one UserMenu you can have more than one account, on the other hand, if it is set on UserMenuAccount it should be set from the application to each account that is added.
I did it this way because for example FLP is used for all accounts and as I understood it would be on the area level as functionality not by the user

@dobromiraboycheva dobromiraboycheva changed the title feat(ui5-user-menu): introduce hide-edit-avatar property feat(ui5-user-menu): introduce show-edit-button property Jan 23, 2025
Copy link
Contributor

@vladitasev vladitasev left a comment

Choose a reason for hiding this comment

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

Looks good, let's merge today before the API review ;)

@dobromiraboycheva dobromiraboycheva merged commit 6adec46 into main Jan 28, 2025
10 checks passed
@ui5-webcomponents-bot
Copy link
Collaborator

🎉 This PR is included in version v2.7.0-rc.2 🎉

The release is available on v2.7.0-rc.2

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Feature Request]: UserMenu - allow to hide "Edit Avatar" button
4 participants