diff --git a/src/app/shared/publication/new-publication/new-publication.page.ts b/src/app/shared/publication/new-publication/new-publication.page.ts index 4199aaad6..8af95e984 100644 --- a/src/app/shared/publication/new-publication/new-publication.page.ts +++ b/src/app/shared/publication/new-publication/new-publication.page.ts @@ -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, ',') ,