Commits

lotte authored 738aa9f0987 Merge
Merge remote-tracking branch 'origin/main' into w2p-94060_Issue-1720_MyDSpace-support-entities

src/app/access-control/epeople-registry/epeople-registry.component.ts

Modified
231 231 modalRef.componentInstance.cancelLabel = 'confirmation-modal.delete-eperson.cancel';
232 232 modalRef.componentInstance.confirmLabel = 'confirmation-modal.delete-eperson.confirm';
233 233 modalRef.componentInstance.brandColor = 'danger';
234 234 modalRef.componentInstance.confirmIcon = 'fas fa-trash';
235 235 modalRef.componentInstance.response.pipe(take(1)).subscribe((confirm: boolean) => {
236 236 if (confirm) {
237 237 if (hasValue(ePerson.id)) {
238 238 this.epersonService.deleteEPerson(ePerson).pipe(getFirstCompletedRemoteData()).subscribe((restResponse: RemoteData<NoContent>) => {
239 239 if (restResponse.hasSucceeded) {
240 240 this.notificationsService.success(this.translateService.get(this.labelPrefix + 'notification.deleted.success', {name: ePerson.name}));
241 - this.reset();
242 241 } else {
243 242 this.notificationsService.error('Error occured when trying to delete EPerson with id: ' + ePerson.id + ' with code: ' + restResponse.statusCode + ' and message: ' + restResponse.errorMessage);
244 243 }
245 244 });
246 245 }
247 246 }
248 247 });
249 248 }
250 249 }
251 250

Everything looks good. We'll let you know here if there's anything you should know about.

Add shortcut