-
Notifications
You must be signed in to change notification settings - Fork 90
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
Add avatar component with contacts menu #64
Conversation
While trying to test this in Mail I found a use case that is not yet supported: non-Nextcloud user but without an URL. We don't always have a URL to an avatar. In those cases we still want to render an avatar with the sender's email address or name. This should more or less assemble what I've developed at https://github.com/nextcloud/mail/blob/b5ad1a0ddf3ca03d0b43e7c0fa835f4607279b34/js/components/Avatar.vue (simple placeholder with first letter). |
|
This comment has been minimized.
This comment has been minimized.
Yep, let's include that as well. I'll look into that. |
I don't see a big use case in adding that, also showing the user id might not be very useful on ldap setups for example. If the displayname is not available app devs can still just set the displayname to the same value as the user id to get a tooltip with it. Besides that, all the comments should be addressed. Ready for another round of review. 😉 |
Any solution for #64 (comment)? I've (again) integrated this new component in Mail: nextcloud/mail#1224. What's missing from my POV:
Works great otherwise ✌️ |
Would it make sense to show a placeholder for unknown users with known |
|
Exactly. Thanks ✌️ |
Combined with the above, you can also disable the tooltip with:
@skjnldsv I've tried to be a bit more descriptive with the variable names. |
CI is also failing on master :/ https://travis-ci.com/nextcloud/vue-components/builds/89187769 |
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.
Awesome! Tested it at nextcloud/mail#1224 and it works really well.
Signed-off-by: Julius Härtl <[email protected]>
Signed-off-by: Julius Härtl <[email protected]>
Signed-off-by: Julius Härtl <[email protected]>
Signed-off-by: Julius Härtl <[email protected]>
Fixes #14
Example usage: