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