changes and changes

This commit is contained in:
Eudes Inácio
2023-11-20 14:12:32 +01:00
parent 92cc1841e7
commit 7bd1370c0b
12 changed files with 174 additions and 47 deletions
+15 -12
View File
@@ -17,12 +17,12 @@ export class HttpErrorHandle {
) {
case 0:
const result = await this.backgroundService.offline()
if(result) {
if (result) {
this.toastService._badRequest('Sem acesso à internet. Por favor verifique sua conexão')
} else {
}
break;
case 400:
this.toastService._badRequest('Lamentamos, mas houve um problema com sua solicitação. Por favor, tente novamente')
@@ -55,12 +55,12 @@ export class HttpErrorHandle {
) {
case 0:
const result = await this.backgroundService.offline()
if(result) {
if (result) {
this.toastService._badRequest('Sem acesso à internet. Por favor verifique sua conexão')
} else {
}
break;
case 400:
this.toastService._badRequest('Lamentamos, mas houve um problema com sua solicitação. Por favor, tente novamente')
@@ -93,12 +93,15 @@ export class HttpErrorHandle {
case 'diplomaAsDraft':
this.toastService._badRequest('Este diploma não contem um draft para ser assinado!')
break;
default:
this.toastService._badRequest('')
break;
}
case 'filetype':
this.toastService._badRequest('Formato de ficheiro inválido!')
break;
default:
this.toastService._badRequest('')
break;
}
}
httpsSucessMessagge(service: string, callback?: any) {
switch (service) {
@@ -210,7 +213,7 @@ export class HttpErrorHandle {
case 'Draft Concluído':
this.toastService._successMessage('Documento Concluído!');
break;
case 'new event to aprove':
case 'new event to aprove':
this.toastService._successMessage('Enviado para os eventos para aprovação!');
break;