mirror of
https://github.com/Part-DB/Part-DB-server.git
synced 2026-02-25 02:49:35 +00:00
Use native turbo reload mechanism instead of our own global_reload controller
This commit is contained in:
parent
b6d77af91b
commit
e2b43ba01f
3 changed files with 6 additions and 31 deletions
|
|
@ -16,10 +16,7 @@
|
|||
</turbo-stream>
|
||||
{% endblock %}
|
||||
|
||||
{# Allow pages to request a fully reload of everything #}
|
||||
{% if global_reload_needed is defined and global_reload_needed %}
|
||||
<div {{ stimulus_controller('turbo/global_reload') }}></div>
|
||||
{% endif %}
|
||||
|
||||
|
||||
{# Insert info about when the sidebar trees were updated last time, so the sidebar_tree_controller can decide if it needs to reload the tree #}
|
||||
<span id="sidebar-last-time-updated" style="display: none;" data-last-update="{{ sidebar_tree_updater.lastTreeUpdate.format("Y-m-d\\TH:i:sP") }}"></span>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue