mirror of
https://code.equilibrium.co.ao/ITO/doneit-web.git
synced 2026-04-18 12:37:53 +00:00
fix edit event to approve
This commit is contained in:
@@ -72,7 +72,7 @@ export class ApproveEventPage implements OnInit {
|
||||
});
|
||||
|
||||
window['approve-event-getTask'] = () => {
|
||||
this.getTask1()
|
||||
this.getTask()
|
||||
}
|
||||
}
|
||||
|
||||
@@ -281,6 +281,7 @@ export class ApproveEventPage implements OnInit {
|
||||
});
|
||||
return await popover.present().then(() => {
|
||||
this.TaskService.loadEventosParaAprovacao()
|
||||
this.getTask();
|
||||
}, (error) => {
|
||||
console.log(error)
|
||||
})
|
||||
|
||||
@@ -8,7 +8,7 @@
|
||||
<ion-header>
|
||||
<div class="title-content">
|
||||
<div class="middle">
|
||||
<ion-label class="title">Editar evento por aprovar ccxcxcxc</ion-label> <br>
|
||||
<ion-label class="title">Editar evento por aprovar</ion-label> <br>
|
||||
<i style="margin-top: -5px; font-size: 15px;" > Campos marcados com * são obrigatórios</i>
|
||||
|
||||
</div>
|
||||
|
||||
@@ -318,7 +318,8 @@ export class EditEventToApproveComponent implements OnInit {
|
||||
if(document['action'] == 'add') {
|
||||
delete document.action
|
||||
this.attachmentsService.setEventAttachmentById(document).subscribe(()=>{
|
||||
this.toastService._successMessage();
|
||||
window['approve-event-getTask'] ()
|
||||
// this.toastService._successMessage();
|
||||
}, error =>{
|
||||
if(error.status == 0) {
|
||||
this.toastService._badRequest('Sem acesso à internet. Por favor verifique sua conexão')
|
||||
@@ -330,7 +331,8 @@ export class EditEventToApproveComponent implements OnInit {
|
||||
} else if(document['action'] == 'delete') {
|
||||
delete document.action
|
||||
this.attachmentsService.deleteEventAttachmentById(document.Id).subscribe( res=>{
|
||||
this.toastService._successMessage()
|
||||
window['approve-event-getTask'] ()
|
||||
// this.toastService._successMessage()
|
||||
}, error =>{
|
||||
if(error.status == 0) {
|
||||
this.toastService._badRequest('Sem acesso à internet. Por favor verifique sua conexão')
|
||||
|
||||
Reference in New Issue
Block a user