Return selected file as well
All checks were successful
FarmMaps.Develop/FarmMapsLib/pipeline/head This commit looks good

This commit is contained in:
Peter Bastiani 2021-03-02 15:36:01 +01:00
parent 4d62184e5b
commit 2dd10f04a3

View File

@ -65,7 +65,9 @@ export class EditImageModalComponent implements OnInit {
this.changed.emit({}); this.changed.emit({});
}); });
} else { } else {
this.changed.emit(this.croppedImage); var selectedImage = (this.imageChangedEvent.target.files && this.imageChangedEvent.target.files[0]) ?
this.imageChangedEvent.target.files[0] : null;
this.changed.emit({ "croppedImage": this.croppedImage, "selectedImage": selectedImage } );
} }
this.modalService.dismissAll("Save"); this.modalService.dismissAll("Save");
} }