-
-
Notifications
You must be signed in to change notification settings - Fork 5.8k
Don't show loading indicators when refreshing the system status #30712
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from 1 commit
1f4ad26
69da05d
ae8061b
2a8de1e
9f76d74
12b1301
9cccd81
4ba0435
4795059
c813bee
3877f03
591617d
c92de87
9a00d63
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change | ||||
---|---|---|---|---|---|---|
|
@@ -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"> | ||||||
This comment was marked as outdated.
Sorry, something went wrong. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Actually it could also use something like Or even as simple as There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. But that prints an error in the console on every request There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I see, then Ideally it could be like this:
Suggested change
Then put Then everything is clear and I think it reads better. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. And more details, Think about a case:
The "panel" is not related to the hx-get. When the loading-indicator is added to the "panel", and the request is still running, then the user shows the panel: surprise: they sees a "loading panel". |
||||||
{{template "admin/system_status" .}} | ||||||
</div> | ||||||
</div> | ||||||
|
Uh oh!
There was an error while loading. Please reload this page.