Browse Source

Don't show loading indicators when refreshing the system status

When I added this the dividers didn't render the loading indicators but I guess some CSS has changed since then. Now we render the loading indicators on hidden elements so they don't appear.

Signed-off-by: Yarden Shoham <git@yardenshoham.com>
pull/30712/head
Yarden Shoham 1 week ago
parent
commit
1f4ad2669f
1 changed files with 1 additions and 1 deletions
  1. 1
    1
      templates/admin/dashboard.tmpl

+ 1
- 1
templates/admin/dashboard.tmpl View File

@@ -76,7 +76,7 @@
{{ctx.Locale.Tr "admin.dashboard.system_status"}}
</h4>
{{/* TODO: make these stats work in multi-server deployments, likely needs per-server stats in DB */}}
<div hx-get="{{$.Link}}/system_status" hx-swap="morph:innerHTML" hx-trigger="every 5s" hx-indicator=".divider" class="ui attached table segment">
<div hx-get="{{$.Link}}/system_status" hx-swap="morph:innerHTML" hx-trigger="every 5s" hx-indicator=".tw-hidden" class="ui attached table segment">
{{template "admin/system_status" .}}
</div>
</div>

Loading…
Cancel
Save