bug fixed

This commit is contained in:
Eudes Inácio
2023-08-22 17:51:32 +01:00
9 changed files with 129 additions and 110 deletions
@@ -102,6 +102,9 @@ export class NewPublicationPage implements OnInit {
}
this.pub = this.publication;
this.showLoader = false;
}, () => {
this.showLoader = false;
this.goBack()
});
}
@@ -174,7 +177,7 @@ export class NewPublicationPage implements OnInit {
Title: this.pub.Title,
Message: this.pub.Message,
DatePublication: this.publication.DatePublication,
OriginalFileName: this.capturedImageTitle,
OriginalFileName: this.publication.OriginalFileName || 'foto',
FileBase64: this.capturedImage,
FileExtension: 'jpeg',
}
@@ -196,7 +199,8 @@ export class NewPublicationPage implements OnInit {
}
}
else if (!this.publication.OriginalFileName) { //
else if (!this.PublicationFolderService.PublicationHasImage(this.publication)) { //
this.publication = {
DateIndex: this.publication.DateIndex,
DocumentId:this.publication.DocumentId,
@@ -204,10 +208,9 @@ export class NewPublicationPage implements OnInit {
Title: this.pub.Title,
Message: this.pub.Message,
DatePublication: this.publication.DatePublication,
OriginalFileName: this.capturedImageTitle,
// OriginalFileName: this.publication.OriginalFileName,
// FileBase64: this.publication.FileBase64,
// FileExtension: 'jpeg',
OriginalFileName: this.publication.OriginalFileName,
FileBase64: "",
FileExtension: this.publication.FileExtension,
}
const loader = this.toastService.loading()
@@ -233,7 +236,7 @@ export class NewPublicationPage implements OnInit {
Title: this.pub.Title,
Message: this.pub.Message,
DatePublication: this.publication.DatePublication,
OriginalFileName: this.capturedImageTitle,
OriginalFileName: this.publication.OriginalFileName,
FileBase64: this.capturedImage,
FileExtension: 'jpeg',
}