mirror of
https://code.equilibrium.co.ao/ITO/doneit-web.git
synced 2026-04-20 13:26:08 +00:00
Improve
This commit is contained in:
+4
-4
@@ -110,13 +110,13 @@ export class ApproveEventModalPage implements OnInit {
|
||||
try {
|
||||
await this.processes.PostTaskAction(body).toPromise()
|
||||
|
||||
this.toastService.successMessage('Evento aprovado', ()=>{
|
||||
this.toastService._successMessage('Evento aprovado', ()=>{
|
||||
this.router.navigate(['/home/gabinete-digital/event-list']);
|
||||
this.modalController.dismiss(null);
|
||||
})
|
||||
|
||||
} catch (error) {
|
||||
this.toastService.badRequest('Evento não aprovado')
|
||||
this.toastService._badRequest('Evento não aprovado')
|
||||
}
|
||||
finally {
|
||||
loader.remove()
|
||||
@@ -141,11 +141,11 @@ export class ApproveEventModalPage implements OnInit {
|
||||
try {
|
||||
await this.processes.PostTaskAction(body).toPromise()
|
||||
|
||||
this.toastService.successMessage('Evento rejeitado', () =>{
|
||||
this.toastService._successMessage('Evento rejeitado', () =>{
|
||||
this.router.navigate(['/home/gabinete-digital/event-list']);
|
||||
})
|
||||
} catch (error) {
|
||||
this.toastService.badRequest('Evento não rejeitado')
|
||||
this.toastService._badRequest('Evento não rejeitado')
|
||||
}
|
||||
finally {
|
||||
loader.remove()
|
||||
|
||||
Reference in New Issue
Block a user