fix(desktop/profile): Upload only accepted image in OnboardingStore

Fix #5238
This commit is contained in:
Michal Iskierko 2022-04-06 11:37:21 +02:00 committed by Iuri Matias
parent 268f6ef4eb
commit a16592c61f
2 changed files with 1 additions and 3 deletions

View File

@ -10,8 +10,6 @@ import shared 1.0
import shared.panels 1.0
import shared.popups 1.0
import "../stores"
StatusModal {
id: popup
height: 510
@ -59,7 +57,6 @@ StatusModal {
ratio: "1:1"
onCropFinished: {
popup.selectedImage = selectedImage
OnboardingStore.uploadImage(selectedImage, aX, aY, bX, bY);
}
}
}

View File

@ -181,6 +181,7 @@ Item {
anchors.centerIn: parent
onAccepted: {
userImage.image.source = uploadProfilePicPopup.selectedImage
OnboardingStore.uploadImage(selectedImage, aX, aY, bX, bY);
}
}
}