- Issue created by @idebr
- Merge request !8970Issue #3464431: Attach Ajax dialog library for Views Entity Operations β (Closed) created by idebr
- Status changed to Needs review
5 months ago 1:23pm 29 July 2024 - π³π±Netherlands idebr
- Extended
\Drupal\Tests\node\FunctionalJavascript\NodeDeleteConfirmTest::testNodeDelete
with a delete operation from Views - Attached the Ajax dialog library for Views Entity Operations
- Converted
waitForText()
topageTextContains()
to actually assert the element is displayed on the page
- Extended
- Status changed to Needs work
5 months ago 4:24pm 29 July 2024 - πΊπΈUnited States smustgrave
Sounds like a feature that probably needs some test coverage.
Also see that the tests had to be updated makes me wonder if this is going to be a breaking change for some sites.
- Status changed to Needs review
5 months ago 8:55am 30 July 2024 - π³π±Netherlands idebr
Test coverage is available, see https://git.drupalcode.org/project/drupal/-/blob/d7b77f1cb94fa938ab984e2...
Considering the Ajax dialog is already active for many sites (see Problem/Motivation), the disruption is minimal.
- Status changed to RTBC
5 months ago 3:02pm 7 August 2024 - π³π±Netherlands Lendude Amsterdam
Nice, this gets Views inline with the changes intended in π Use a modal for entity delete operation links Fixed . Solution looks good, test coverage looks good (couple of unrelated code cleanup changes I guess, but Β―\_(γ)_/Β―)
- Status changed to Fixed
5 months ago 1:10am 11 August 2024 - π¬π§United Kingdom catch
Had a look at this. I wondered if we could add the dialog library only when there is a link that uses a modal, but after looking at it, the current EntityListBuilder implementation doesn't try to do that, and this isn't supported by #theme links which is what these operations ultimately turn into.
To make that work, we'd have to make each link a render array that support #attached, then the delete link could handle that itself. Opened π Allow links passed to #theme links to support #attached Active to explore this.
Committed/pushed to 11.x, thanks!
Automatically closed - issue fixed for 2 weeks with no activity.