Review main Merged

77317[BUGFIX] Provide tag to add JavaScript Modules to importmap in Backend Form

Benjamin Kott CR +2 V +2 Normal +57 −0 updated 01/10/23, 15:18

Commit message

The JavaScript module import map is static and only generated and
loaded in the first request to a document. All possible future
modules requested in later Ajax calls need to be registered already
in the first initial request.

We are adding a new tag 'backend.form' that is used to identify
JavaScript modules that can be used within the backend forms. This
will ensure that the import maps are available for these modules even
if the element is not displayed directly.

A typical use case for this is an InlineRelationRecord where the
CKEditor is not part of the main record but needs to be loaded for the
child record.

Review

  • Code review CR +2

    Imported before Forger kept the single votes, the next import adds them.

  • Verified V +2

    Imported before Forger kept the single votes, the next import adds them.

Issues 1

Files 5