Automatically update the sidebar trees for all users if the trees are changed somehow.

This commit is contained in:
Jan Böhmer 2022-09-25 02:08:54 +02:00
parent 2bd41eee60
commit 4c25e85a48
5 changed files with 73 additions and 0 deletions

View file

@ -15,6 +15,9 @@
<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>
<div class="d-none" data-title="{% apply trim %}{{ current_page_title }}{% endapply %}" {{ stimulus_controller('turbo/title') }}></div>
<div class="d-none" {{ stimulus_controller('turbo/locale_menu') }}>