Add an error message when trying to re-gift a work to a user who has already rejected it

Description

1. While logged in as Testy, gift a work to Testy2.
2. Log in as Testy2 and refuse the gift.
3. Log back in as Testy and edit the work, entering Testy2 again as the gift recipient.
4. Update the work.

What happens: you receive a message saying "Work was successfully updated" but nothing actually happens. Testy2 is not re-added as a recipient since they already rejected it, but it can be confusing for the user trying to give the gift.

What should happen instead: Rather than saying "Work was successfully updated", the message should deliver an error like "Sorry, you can't add a recipient who has already rejected the gift."

Environment

None

Status

Assignee

Unassigned

Reporter

Nary Rising

Roadmap

Challenges
Works

Priority

Medium

Affects versions

Fix versions

None

Components

FrontEnd

Difficulty

Medium

Required Access Level

None

Milestone

Internal 0.9
Configure