mirror of
https://code.equilibrium.co.ao/ITO/doneit-web.git
synced 2026-04-21 13:55:51 +00:00
Publication
This commit is contained in:
@@ -154,7 +154,9 @@ export class NewPublicationPage implements OnInit {
|
||||
|
||||
if(this.Form.invalid) return false
|
||||
|
||||
if(this.publicationType == '3'){
|
||||
|
||||
|
||||
if(this.publicationType == '3') {
|
||||
|
||||
if(this.capturedImage != '') {
|
||||
this.publication = {
|
||||
@@ -168,12 +170,12 @@ export class NewPublicationPage implements OnInit {
|
||||
FileBase64: this.capturedImage,
|
||||
FileExtension: 'jpeg',
|
||||
}
|
||||
|
||||
console.log('Edit change image');
|
||||
console.log(this.publication);
|
||||
const loader = this.toastService.loading()
|
||||
|
||||
try {
|
||||
console.log(this.publication);
|
||||
|
||||
await this.publications.UpdatePublication(this.publication.ProcessId, this.publication).toPromise()
|
||||
this.toastService.successMessage("Publicação criado")
|
||||
@@ -187,6 +189,7 @@ export class NewPublicationPage implements OnInit {
|
||||
|
||||
}
|
||||
else{
|
||||
|
||||
this.publication = {
|
||||
DateIndex: this.publication.DateIndex,
|
||||
DocumentId:this.publication.DocumentId,
|
||||
@@ -259,7 +262,7 @@ export class NewPublicationPage implements OnInit {
|
||||
else if(this.publicationType == '2'){
|
||||
this.publicationTitle = 'Nova Publicação';
|
||||
}
|
||||
else if(this.publicationType == '3'){
|
||||
else if(this.publicationType == '3') {
|
||||
this.publicationTitle = 'Editar Publicação';
|
||||
this.pub = this.publication;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user