This commit is contained in:
Peter Maquiran
2024-04-09 09:28:59 +01:00
parent 453e51487d
commit 3600ed6cd5
@@ -768,6 +768,36 @@ console.log(stringGerada);
async showCroppModal() {
// const modal = await this.modalController.create({
// component: CropImagePage,
// componentProps: {
// base64ToCroppe: this.capturedImage
// },
// cssClass: 'modal modal-desktop'
// });
// modal.onDidDismiss().then((res) => {
// if (res) {
// this.capturedImage = res.data
// this.filecontent = true;
// this.photoOrVideo = false;
// const newAttachment = new PublicationAttachmentEntity(
// {
// base64: res.data.base64ToCroppe,
// extension: 'jpeg',
// OriginalFileName: "image",
// FileType: 'image'
// }
// )
// this.PublicationFromMvService.form.Files.push(newAttachment)
// }
// }, (error) => {
// console.log(error)
// });
// await modal.present();
let fileObject = new PublicationAttachmentEntity({
base64: this.removeTextBeforeSlash(this.capturedImage, ',') ,