Commit 73ba0ea
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 174f05a commit 73ba0ea
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 | |
|---|---|---|---|
| |||
279 | 279 | | |
280 | 280 | | |
281 | 281 | | |
282 | | - | |
| 282 | + | |
| 283 | + | |
| 284 | + | |
| 285 | + | |
| 286 | + | |
| 287 | + | |
| 288 | + | |
283 | 289 | | |
284 | 290 | | |
285 | 291 | | |
| |||
0 commit comments