mirror of
https://code.equilibrium.co.ao/ITO/doneit-web.git
synced 2026-04-20 13:26:08 +00:00
save
This commit is contained in:
@@ -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)
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user