mirror of
https://code.equilibrium.co.ao/ITO/doneit-web.git
synced 2026-04-18 20:47:54 +00:00
message
This commit is contained in:
@@ -87,9 +87,14 @@ export class ApproveEventPage implements OnInit {
|
||||
try {
|
||||
await this.processes.PostTaskAction(body).toPromise()
|
||||
this.modalController.dismiss(serialNumber);
|
||||
this.toastService._successMessage()
|
||||
this.toastService._successMessage('Evento aprovar')
|
||||
} catch (error) {
|
||||
this.toastService._badRequest()
|
||||
if(error.status == 0) {
|
||||
this.toastService._badRequest('Sem acesso à internet. Por favor verifique sua conexão')
|
||||
} else {
|
||||
|
||||
this.toastService._badRequest('Evento não aprovar')
|
||||
}
|
||||
} finally {
|
||||
this.close()
|
||||
loader.remove()
|
||||
@@ -108,7 +113,13 @@ export class ApproveEventPage implements OnInit {
|
||||
await this.processes.PostTaskAction(body).toPromise()
|
||||
this.toastService._successMessage('Evento rejeitado')
|
||||
} catch (error) {
|
||||
this.toastService._badRequest('Processo não efectuado')
|
||||
if(error.status == 0) {
|
||||
this.toastService._badRequest('Sem acesso à internet. Por favor verifique sua conexão')
|
||||
} else {
|
||||
|
||||
this.toastService._badRequest('Evento não rejeitado')
|
||||
}
|
||||
|
||||
} finally {
|
||||
loader.remove()
|
||||
this.close()
|
||||
@@ -196,7 +207,7 @@ export class ApproveEventPage implements OnInit {
|
||||
this.toastService._badRequest('Sem acesso à internet. Por favor verifique sua conexão')
|
||||
} else {
|
||||
|
||||
this.toastService._badRequest();
|
||||
this.toastService._badRequest('Evento não enviado para revisão');
|
||||
}
|
||||
} finally {
|
||||
loader.remove()
|
||||
|
||||
@@ -42,7 +42,6 @@ export class EventsToApprovePage implements OnInit {
|
||||
}
|
||||
|
||||
ngOnInit() {
|
||||
// console.log('ERROR LEGN',this.eventsMDGPRList.length)
|
||||
this.segment = this.loggeduser.Profile;
|
||||
this.LoadToApproveEvents();
|
||||
|
||||
@@ -127,7 +126,7 @@ export class EventsToApprovePage implements OnInit {
|
||||
doRefresh(event) {
|
||||
if (event) {
|
||||
setTimeout(() => {
|
||||
event.target.complete();
|
||||
event?.target?.complete();
|
||||
}, 2000);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user