Skip to content

Commit

Permalink
minor #5139 Disable UX-Turbo (Lustmored)
Browse files Browse the repository at this point in the history
This PR was merged into the 4.x branch.

Discussion
----------

Disable UX-Turbo

In all my projects with EasyAdmin I am sharing Stimulus controllers between EasyAdmin and frontend (I need them sometimes and it's just simpler). Since enabling Turbo on some projects I need to overwrite EasyAdmin layout just to disable it.

Currently EA is very unfriendly towards Turbo - there are JavaScripts in body, DOMContentLoaded listeners and so on. Refactoring everything to be turbo-compatible would be titanic effort with little benefit (it's not really needed in CRUD dashboards in my opinion), while adding this single attribute will make life easier for probably more consumers than just myself :)

Commits
-------

735b239 Disable UX-Turbo
  • Loading branch information
javiereguiluz committed Mar 28, 2022
2 parents da0cc3f + 735b239 commit f3a4b13
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Resources/views/layout.html.twig
Expand Up @@ -2,7 +2,7 @@
{% trans_default_domain ea.i18n.translationDomain %}

<!DOCTYPE html>
<html lang="{{ ea.i18n.htmlLocale }}" dir="{{ ea.i18n.textDirection }}">
<html lang="{{ ea.i18n.htmlLocale }}" dir="{{ ea.i18n.textDirection }}" data-turbo="false">
<head>
{% block head_metas %}
<meta charset="utf-8">
Expand Down

0 comments on commit f3a4b13

Please sign in to comment.