]> source.dussan.org Git - gitea.git/commitdiff
Don't show loading indicators when refreshing the system status (#30712)
authorYarden Shoham <git@yardenshoham.com>
Sat, 27 Apr 2024 13:05:06 +0000 (16:05 +0300)
committerGitHub <noreply@github.com>
Sat, 27 Apr 2024 13:05:06 +0000 (13:05 +0000)
Signed-off-by: Yarden Shoham <git@yardenshoham.com>
Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
Co-authored-by: silverwind <me@silverwind.io>
templates/admin/dashboard.tmpl

index 589fc5048af4450548dbb134153588e5f3325ba6..3445433d53eefe6a81958a1031d849664f60baf3 100644 (file)
@@ -76,7 +76,8 @@
                        {{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 class="no-loading-indicator tw-hidden"></div>
+               <div hx-get="{{$.Link}}/system_status" hx-swap="morph:innerHTML" hx-trigger="every 5s" hx-indicator=".no-loading-indicator" class="ui attached table segment">
                        {{template "admin/system_status" .}}
                </div>
        </div>