WIP: #353 - add reset button for avatar, banner, profile images #1855

Closed
Dave wants to merge 13 commits from gitlab-mr-iid-585 into develop
Member

Issue #353 - Add reset buttons for avatar, banner, and profile images

no_reset_with_default

reset

Issue #353 - Add reset buttons for avatar, banner, and profile images ![no_reset_with_default](/attachments/875fefe4-82f1-49f6-8811-a3bba115055c) ![reset](/attachments/74d18ba0-1ed8-4111-ac8f-a96af677e9fc)
Member

I think it is more clear to check the existence of params.banner rather than this. And for a long-term solution, we need to get is_default_banner as the API response.

I think it is more clear to check the existence of `params.banner` rather than this. And for a long-term solution, we need to get `is_default_banner` as the API response.
Member

Naming of these function submitAvatar and uploadAvatar makes me confused in the perspective of view.
I suggest submitAvatar, resetAvatar (for the view), and updateAvatar (which is commonly used internally by the prior functions) 😄
Same for the other subjects.

Naming of these function `submitAvatar` and `uploadAvatar` makes me confused in the perspective of view. I suggest `submitAvatar`, `resetAvatar` (for the view), and `updateAvatar` (which is commonly used internally by the prior functions) :smile: Same for the other subjects.
Author
Member

Good point. I update the BE and FE.

Good point. I update the BE and FE.
Author
Member

I agree. At first, I added these 3 functions - submit, reset, and update. But reset and submit were almost identical. And I tried to remove the unnecessary ones.

If it makes the ease of understanding, I will update that.

I agree. At first, I added these 3 functions - submit, reset, and update. But reset and submit were almost identical. And I tried to remove the unnecessary ones. If it makes the ease of understanding, I will update that.
Member

Awesome! One more thing, I believe we need to show a confirm modal before resetting them.

Awesome! One more thing, I believe we need to show a `confirm` modal before resetting them.
Owner

Resetting banner doesn't work for me, on firefox

Resetting banner doesn't work for me, on firefox
Author
Member

It won't work unless you run the back-end locally.

I also updated the BE and it needs to be merged prior to this one.

It won't work unless you run the back-end locally. I also updated the BE and it needs to be merged prior to this one.
Owner

oh, would be nice to put that sort of information in the descrption :p

oh, would be nice to put that sort of information in the descrption :p
Author
Member

;) sorry about that. will try to add more details from the next time.

;) sorry about that. will try to add more details from the next time.
Owner

Is the BE part merged?

Is the BE part merged?
Author
Member

@shpuld not yet. It's still pending.

@shpuld not yet. It's still pending.

Pull request closed

Sign in to join this conversation.
No reviewers
No milestone
No project
No assignees
3 participants
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
pleroma/pleroma-fe!1855
No description provided.