-
Notifications
You must be signed in to change notification settings - Fork 124
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fixes the Single Use Link delete button. #6990
base: main
Are you sure you want to change the base?
Conversation
Test Results 13 files ±0 13 suites ±0 3h 2m 29s ⏱️ + 1m 32s For more details on these failures, see this check. Results for commit 9a023dc. ± Comparison against base commit 2c73a9b. This pull request removes 360 and adds 363 tests. Note that renamed tests count towards both.
|
I cannot replicate the problem on either dev or pg nurax. I'm seeing a DELETE request and 200 response in the browser's network log. |
Summary
Fixes the link by forcing the method to be
DELETE
(it was defaulting toGET
, causing a routing error), allowing it to perform without expecting a redirect (the#destroy
controller action has no directive for redirect, just ahead :ok
response), and aonclick
alert response because clickingDelete
produces no affirmation to the user.Guidance for testing, such as acceptance criteria or new user interface behaviors:
Type of change (for release notes)
notes-bugfix
Bug FixesChanges proposed in this pull request:
remote=true
to link.method="DELETE"
to link.@samvera/hyrax-code-reviewers