Multiples messages when evento to aprove where editedd

This commit is contained in:
Eudes Inácio
2023-06-10 17:04:09 +01:00
6 changed files with 17 additions and 19 deletions
@@ -15,6 +15,7 @@ import { removeDuplicate } from 'src/plugin/removeDuplicate.js'
import { EventToApproveEdit } from 'src/app/models/event.model';
import { ThemeService } from 'src/app/services/theme.service'
import { Router } from '@angular/router';
import { HttpErrorHandle } from 'src/app/services/http-error-handle.service';
const CUSTOM_DATE_FORMATS: NgxMatDateFormats = {
@@ -131,6 +132,7 @@ export class EditEventToApprovePage implements OnInit {
private processes:ProcessesService,
private toastService: ToastService,
public ThemeService: ThemeService,
public httpErrorHandler: HttpErrorHandle
) {
this.isEventEdited = false;
}
@@ -362,9 +364,10 @@ export class EditEventToApprovePage implements OnInit {
this.close()
this.toastService._successMessage('Evento editado');
this.httpErrorHandler.httpsSucessMessagge('Editar evento');
} catch(e) {
this.httpErrorHandler.httpStatusHandle(e);
this.toastService._badRequest('Evento não editado');
}