Return selected file as well
All checks were successful
FarmMaps.Develop/FarmMapsLib/pipeline/head This commit looks good
All checks were successful
FarmMaps.Develop/FarmMapsLib/pipeline/head This commit looks good
This commit is contained in:
parent
4d62184e5b
commit
2dd10f04a3
@ -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");
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user