瀏覽代碼

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 月之前
父節點
當前提交
1f4ad2669f
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1
    1
      templates/admin/dashboard.tmpl

+ 1
- 1
templates/admin/dashboard.tmpl 查看文件

@@ -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…
取消
儲存