-
-
Notifications
You must be signed in to change notification settings - Fork 13
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
Unify loading button #2962
Unify loading button #2962
Conversation
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## master #2962 +/- ##
==========================================
+ Coverage 72.81% 72.82% +0.01%
==========================================
Files 266 266
Lines 10200 10204 +4
Branches 1196 1196
==========================================
+ Hits 7427 7431 +4
Misses 2424 2424
Partials 349 349
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. |
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.
Reviewed 9 of 10 files at r1, 1 of 1 files at r2, all commit messages.
Reviewable status: all files reviewed, 1 unresolved discussion (waiting on @imnasnainaec)
src/components/Dialogs/CancelConfirmDialog.tsx
line 55 at r2 (raw file):
<Button color="primary" disabled={loading}
So the user cannot cancel an action once it starts loading? How is one to manage something that is taking too long?
Code quote:
disabled={loading}
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.
Reviewable status: complete! all files reviewed, all discussions resolved (waiting on @imnasnainaec)
src/components/Dialogs/CancelConfirmDialog.tsx
line 55 at r2 (raw file):
Previously, jmgrady (Jim Grady) wrote…
So the user cannot cancel an action once it starts loading? How is one to manage something that is taking too long?
Correct. The loading is being used with async
functions, usually involving the backend. It is not only to indicate that something is happening, but also to prevent double submissions. We don't have any clean cancel mechanisms is place, so the user's cancel is to refresh the page or navigate to a different page.
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.
Reviewable status: complete! all files reviewed, all discussions resolved (waiting on @imnasnainaec)
A small bit of #1618
This change is