fix refresh bug where nth page loads first page's inner list

This commit is contained in:
Mathieu Fenniak 2025-03-28 18:41:48 -06:00 committed by Gusted
parent bd8c09aa00
commit 84b2c48d0d

View file

@ -7,7 +7,7 @@
{{/* Refresh the list every interval (30s) unless the document isn't visible or a dropdown is open; refresh
if visibility changes as well. */}}
<div
hx-get="?workflow={{$.CurWorkflow}}&actor={{$.CurActor}}&status={{$.CurStatus}}&list_inner=true"
hx-get="?workflow={{$.CurWorkflow}}&actor={{$.CurActor}}&status={{$.CurStatus}}&page={{$.Page.Paginater.Current}}&list_inner=true"
hx-swap="morph:innerHTML"
hx-trigger="every 30s [document.visibilityState === 'visible' && noActiveDropdowns()], visibilitychange[document.visibilityState === 'visible'] from:document"
hx-indicator="#reloading-indicator">