Skip to content
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

Better User experience when getting data from API #1317

Merged
merged 4 commits into from
Dec 27, 2024

Conversation

geelongmicrosoldering
Copy link
Contributor

Hey there,

I noticed some of the code for this was already written, but was not yet incorporated into the Replay Page.

This prevents multiple API requests while the browser is waiting for a response from the server, and provides the user with some feedback about what's happening

Disable "Show" button while we wait for api response. Prevents subsequent API requests until the first one has returned
Change "Show" button text to reflect Loading state during loading for better user experience
src/other/ReplayPage.jsx Outdated Show resolved Hide resolved
Define translation conditionally

Co-authored-by: Anton Tananaev <anton.tananaev@gmail.com>
setLoading in a try>finally rather than referencing multiple times
@tananaev tananaev merged commit 8a36147 into traccar:master Dec 27, 2024
1 check passed
@tananaev
Copy link
Member

Thank you.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants