This commit is contained in:
Peter Maquiran
2023-02-14 16:35:11 +01:00
parent 3b41314b65
commit 940d2532af
3 changed files with 10 additions and 13 deletions
@@ -214,16 +214,15 @@ export class ApproveEventPage implements OnInit {
try {
await this.processes.PostTaskAction(body).toPromise()
this.toastService._successMessage();
this.goBack();
this.toastService._successMessage('Evento Aprovar')
this.toastService._successMessage('Evento aprovado')
} catch (error) {
if(error.status == 0) {
this.toastService._badRequest('Sem acesso à internet. Por favor verifique sua conexão')
} else {
this.toastService._badRequest('Evento não aprovar')
this.toastService._badRequest('Evento não aprovado')
}
}
finally {
@@ -482,8 +482,8 @@ export class EditEventPage implements OnInit {
}
});
await modal.present();
modal.onDidDismiss().then( async (res)=>{
if(res){
modal.onDidDismiss().then( async (res) => {
if(res) {
const data = res.data;
const ApplicationIdDocumentToSave: any = {
@@ -493,7 +493,6 @@ export class EditEventPage implements OnInit {
Stakeholders: data.selected.Stakeholders | data.selected.EntidadeOrganicaNome,
ApplicationId: data.selected.ApplicationType.toString(),
CreateDate: data.selected.Data,
// needed to attach this document
Id: 'add',
SourceTitle: data.selected.Assunto,
Source: '1',
@@ -501,7 +500,6 @@ export class EditEventPage implements OnInit {
SerialNumber: '',
}
this.loadedEventAttachments.push(ApplicationIdDocumentToSave)
}