-
-
Notifications
You must be signed in to change notification settings - Fork 334
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[MIG] attachment_preview: Migration to 16.0
Overall implementation remains the same as in previous versions: * patch into attachment list to prepare prev/next buttons in the viewer * patch into attachment cards to observe clicks on new buttons this module adds * fetch attachment extensions * add an iframe into the DOM tree next to the main form one, display viewer inside it * add preview button within binary fields Main changes in this migration: * update imports/exports to proper JS modules - in particular, this fixes "service already defined" console messages we also get in 15.0 * rework FormRenderer injector, previous (legacy) one was no longer used * patch attachment list / cards with new methods in the mail module * fix preview button inclusion within binary fields
- Loading branch information
1 parent
4a06dba
commit bcd570d
Showing
10 changed files
with
334 additions
and
570 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,5 @@ | ||
* Holger Brunn <[email protected]> | ||
* Dennis Sluijk <[email protected]> | ||
* `XCG Consulting <https://xcg-consulting.fr>`_: | ||
|
||
* Houzéfa Abbasbhay |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
* Remove `FormRenderer` patch, convert `AttachmentPreviewWidget` into a component instead. | ||
* Remove `BinaryField` patch, convert preview button into a component instead. | ||
* Don't use `bus.trigger("open_attachment_preview", ...)` to open viewer from an attachment; there | ||
must be a smoother way. | ||
* Binary fields only have an external preview button. Also add inline preview; stub code is already | ||
there. | ||
* Add tests to ensure preview & open buttons are rendered in attachment cards. | ||
* Add JS tests to ensure preview & open buttons work as expected (display viewer / open url). |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.