fix(desktop/profile): Upload only accepted image in OnboardingStore
Fix #5238
This commit is contained in:
parent
268f6ef4eb
commit
a16592c61f
|
@ -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);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -181,6 +181,7 @@ Item {
|
|||
anchors.centerIn: parent
|
||||
onAccepted: {
|
||||
userImage.image.source = uploadProfilePicPopup.selectedImage
|
||||
OnboardingStore.uploadImage(selectedImage, aX, aY, bX, bY);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue