Merge pull request #23736 from nextcloud/backport/23721/stable20
[stable20] reset avatar cropper before showing
This commit is contained in:
commit
ca4eaf9ab5
|
@ -134,6 +134,7 @@ function avatarResponseHandler (data) {
|
||||||
oc_userconfig.avatar.generated = false;
|
oc_userconfig.avatar.generated = false;
|
||||||
updateAvatar();
|
updateAvatar();
|
||||||
} else if (data.data === "notsquare") {
|
} else if (data.data === "notsquare") {
|
||||||
|
cleanCropper();
|
||||||
showAvatarCropper();
|
showAvatarCropper();
|
||||||
} else {
|
} else {
|
||||||
$warning.show();
|
$warning.show();
|
||||||
|
|
Loading…
Reference in New Issue