Skip to content
Snippets Groups Projects
Unverified Commit cdcbda5e authored by Saurabh Kumar's avatar Saurabh Kumar Committed by GitHub
Browse files

Show activity feed after the page load (#3571)

HTMX shows "Loading…" when reloading the "#activity-feed" tabs on
submissions and projects

https://alpinejs.dev/directives/init#next-tick

Fixes #3568
parent cc0e22b9
No related branches found
No related tags found
2 merge requests!23Add ReviewOpinion delete functionality to review sidebar (#3565),!20Merge in v4.7.0 and v4.8.0
...@@ -55,9 +55,8 @@ ...@@ -55,9 +55,8 @@
hx-target="#tab-3 .feed" hx-target="#tab-3 .feed"
hx-trigger="open-tab-3 once" hx-trigger="open-tab-3 once"
data-tab="tab-3" data-tab="tab-3"
x-data x-init="$nextTick(() => { location.hash === '#activity-feed' ? $dispatch('open-tab-3') : '' })"
@hashchange.window="location.hash === '#activity-feed' ? $dispatch('open-tab-3') : ''" @hashchange.window="location.hash === '#activity-feed' ? $dispatch('open-tab-3') : ''"
x-init="location.hash === '#activity-feed' ? $dispatch('open-tab-3') : ''"
> >
{% trans "Activity feed" %} {% trans "Activity feed" %}
</a> </a>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment