Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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
Don't show loading indicators when refreshing the system status #30712
Don't show loading indicators when refreshing the system status #30712
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
There are no files selected for viewing
This comment was marked as outdated.
Sorry, something went wrong.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Actually it could also use something like
hx-indicator="no-indicator"
, becauseno-indicator
also matches nothing.Or even as simple as
hx-indicator="no"
, we would never use<no>
tag in HTML code, so it also matches nothing.There was a problem hiding this comment.
Choose a reason for hiding this comment
The 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 comment
The reason will be displayed to describe this comment to others. Learn more.
I see, then
tw-hidden
also doesn't seem good enough becausetw-hidden
might also not exist.Ideally it could be like this:
Then put
<div class="hidden-loading-indicator tw-hidden"></div>
into "admin/system_status"Then everything is clear and I think it reads better.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
And more details,
.tw-hidden
can't be right. It just adds the indicator to all thetw-hidden
elements on this page, which causes various side effectsThink 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".