mirror of
https://code.equilibrium.co.ao/ITO/doneit-web.git
synced 2026-04-18 20:47:54 +00:00
fix crop
This commit is contained in:
@@ -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, ',') ,
|
||||
|
||||
Reference in New Issue
Block a user