101731: Make ConfirmationModalComponent not dependent on DSpaceObject

This commit is contained in:
Alexandre Vryghem
2023-05-22 16:56:13 +02:00
parent 11a86c3756
commit 822db5120a
7 changed files with 14 additions and 13 deletions

View File

@@ -416,7 +416,7 @@ export class GroupFormComponent implements OnInit, OnDestroy {
delete() {
this.groupDataService.getActiveGroup().pipe(take(1)).subscribe((group: Group) => {
const modalRef = this.modalService.open(ConfirmationModalComponent);
modalRef.componentInstance.dso = group;
modalRef.componentInstance.name = this.dsoNameService.getName(group);
modalRef.componentInstance.headerLabel = this.messagePrefix + '.delete-group.modal.header';
modalRef.componentInstance.infoLabel = this.messagePrefix + '.delete-group.modal.info';
modalRef.componentInstance.cancelLabel = this.messagePrefix + '.delete-group.modal.cancel';