This commit is contained in:
Yarden Shoham 2024-11-20 17:42:05 +00:00
parent 1c814613e7
commit 92bc292b29
1 changed files with 3 additions and 3 deletions

View File

@ -3,9 +3,9 @@
{{template "repo/header" .}} {{template "repo/header" .}}
<div class="no-loading-indicator tw-hidden"></div> <div class="no-loading-indicator tw-hidden"></div>
<!-- this element reloads its content with htmx as soon as a response from the backend <!-- this element reloads its content with htmx as soon as a response from the backend
includes the header "HX-Trigger: refreshCards". This usually happens when a user includes the header "HX-Trigger: refreshCards". This usually happens when a user
watched/unwatched/starred/unstarred and we want their user card to appear/disappear. watched/unwatched/starred/unstarred and we want their user card to appear/disappear.
To test go to the watchers page and click the watch button. The user cards should reload. --> To test go to the watchers page and click the watch button. The user cards should reload. -->
<div <div
hx-trigger="refreshCards from:body" hx-trigger="refreshCards from:body"
hx-indicator=".no-loading-indicator" hx-indicator=".no-loading-indicator"