U4-10095 - Need to be able to remove a user's avatar

Created by Shannon Deminick 04 Jul 2017, 02:35:54 Updated by Shannon Deminick 01 Aug 2017, 07:51:57

Subtask of: U4-8632

Comments

Mads Rasmussen 27 Jul 2017, 09:08:53

@Shandem I have added the remove avatar button back, so it is now possible to remove a custom uploaded avatar. I do get a YSOD when I try to remove a gravatar. We need to figure out what we want to do here: allow a user to clear the fallback to gravatar and just show the badge with the user name or hide the "Remove photo" button if there is no custom avatar uploaded?

PR here: https://github.com/umbraco/Umbraco-CMS/pull/2079


Shannon Deminick 28 Jul 2017, 05:52:11

Ah, I never thought about the ability to remove your gravatar entirely, i'll have a look might be possible without much work, otherwise i vote (for now) to just remove the remove photo button if there is no custom avatar


Shannon Deminick 28 Jul 2017, 06:04:03

I've pushed a change so you can remove the avatar. So i guess if a user does that then we should disable the remove photo button if there's nothing more to remove. Only issue now is that if you want to get your gravatar back, you'd need to upload a new photo, then remove that photo which will revert to your gravatar. What do you think, is this so important at this stage?


Mads Rasmussen 31 Jul 2017, 09:43:38

I have updated the PR so we only show the "remove photo" button if the user has any avatars


Priority: Normal

Type: Bug

State: Fixed

Assignee:

Difficulty: Normal

Category:

Backwards Compatible: True

Fix Submitted:

Affected versions:

Due in version: 7.7.0

Sprint: Sprint 64

Story Points: 1

Cycle: