-
Notifications
You must be signed in to change notification settings - Fork 174
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
Add confirmation dialog before importing contacts #3759
Conversation
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #3759 +/- ##
==========================================
- Coverage 2.51% 0.00% -2.52%
- Complexity 0 261 +261
==========================================
Files 89 24 -65
Lines 4411 784 -3627
Branches 1126 0 -1126
==========================================
- Hits 111 0 -111
+ Misses 4180 784 -3396
+ Partials 120 0 -120 ☔ View full report in Codecov by Sentry. |
13ec9db
to
858be11
Compare
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.
Tested and works.
I left some annotations about code that is not required any more.
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.
Tested and works! Please squash.
Signed-off-by: greta <[email protected]>
caf7218
to
3e3fcd8
Compare
// Redirect to the import page if the user confirmed | ||
window.location = generateUrl(`/apps/contacts/import?file=${file.path}`) | ||
} catch (e) { | ||
// Do nothing if the user cancels |
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.
logging would be advisable here if anything but rejection is thrown
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 can do that with a follow up
fixes #2788