Commit 221c323
Matus Kasak
Use the failure i18n key when a delete fails
The error branch of the EPeople registry delete handler was reusing
'notification.deleted.success', so any non-self-delete failure showed a
red toast reading "Successfully deleted EPerson" with an empty name.
Switch to 'notification.deleted.failure' and pass restResponse, which
the failure string interpolates as {{restResponse.errorMessage}}. This
matches what dtq-dev already does (07957d8) — the hunk was missed
when the change was translated to the 9.x component. Raised by Copilot
review on PR #1447.
Refs dataquest-dev/dspace-customers#8551 parent 872f574 commit 221c323
1 file changed
Lines changed: 7 additions & 1 deletion
Lines changed: 7 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
282 | 282 | | |
283 | 283 | | |
284 | 284 | | |
285 | | - | |
| 285 | + | |
| 286 | + | |
| 287 | + | |
| 288 | + | |
| 289 | + | |
| 290 | + | |
| 291 | + | |
286 | 292 | | |
287 | 293 | | |
288 | 294 | | |
| |||
0 commit comments