-
-
Notifications
You must be signed in to change notification settings - Fork 7k
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
Allow users to clear their profile and header picture #13234
Conversation
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 looks ok to me, however, we have recently merged #13192 which provides something similar for server-wide uploads. It would probably make sense to stick with that design. Also note that one test fails because it clicks the first button of type |
5efb3ae
to
0e92802
Compare
I updated the pull request to match the site upload deletion UI! I tried to implement it similarly, but unfortunately I encountered the following problem: I still feel like that this should be a part of |
The chunk of JS isn't that big, but wouldn't it be simpler to have separate routes for this instead of having new parameters? |
428e14e
to
6e83910
Compare
I've reworked the pull request completely and dropped the At first I was thinking about adding a PS: Also changed link text from |
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.
LGTM overall, except for the part I commented inline
This is achieved by sending a DELETE request to /settings/profile/pictures/{avatar,header} via a link that is part of the upload form's hint of the respective picture.
6e83910
to
70561b7
Compare
This Pull-Request is #8646, but completely reworked.