-
Notifications
You must be signed in to change notification settings - Fork 273
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
Conversation
055df9f
to
ee6c722
Compare
packages/fiori/src/UserMenu.ts
Outdated
* @since 2.7.0 | ||
*/ | ||
@property({ type: Boolean }) | ||
hideEditAvatar = false; |
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.
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
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.
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
hide-edit-avatar
propertyshow-edit-button
property
…user-menu-edit-avar-button
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.
Looks good, let's merge today before the API review ;)
🎉 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 📦🚀 |
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 isfalse
.