From 530340ada6496bad9e159f7b582b3346044acd9e Mon Sep 17 00:00:00 2001 From: Eduardo Quiros Date: Fri, 16 Jul 2021 18:23:03 -0600 Subject: [PATCH] agregar servicios de encuesta para eventualmente 'eliminar' la categoria de las encuestas que la contengan --- .../categoria/delete/categoria-delete-dialog.component.ts | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/main/webapp/app/entities/categoria/delete/categoria-delete-dialog.component.ts b/src/main/webapp/app/entities/categoria/delete/categoria-delete-dialog.component.ts index 4bffc15..a9192e4 100644 --- a/src/main/webapp/app/entities/categoria/delete/categoria-delete-dialog.component.ts +++ b/src/main/webapp/app/entities/categoria/delete/categoria-delete-dialog.component.ts @@ -1,5 +1,6 @@ import { Component } from '@angular/core'; import { NgbActiveModal } from '@ng-bootstrap/ng-bootstrap'; +import { EncuestaService } from 'app/entities/encuesta/service/encuesta.service'; import { EstadoCategoria } from 'app/entities/enumerations/estado-categoria.model'; import { ICategoria } from '../categoria.model'; @@ -11,7 +12,11 @@ import { CategoriaService } from '../service/categoria.service'; export class CategoriaDeleteDialogComponent { categoria?: ICategoria; - constructor(protected categoriaService: CategoriaService, protected activeModal: NgbActiveModal) {} + constructor( + protected categoriaService: CategoriaService, + protected activeModal: NgbActiveModal, + protected encuestaService: EncuestaService + ) {} cancel(): void { this.activeModal.dismiss();