reset avatar cropper before showing

Signed-off-by: Robin Appelman <robin@icewind.nl>
This commit is contained in:
Robin Appelman 2020-10-27 15:00:50 +01:00 committed by backportbot[bot]
parent 86c66c29a9
commit 5c93d08bc1
1 changed files with 1 additions and 0 deletions

View File

@ -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();