KomodoPlatform / atomicdexweb_bugreport

1 stars 0 forks source link

Add confirmation when leaving/refreshing page #3

Open theblackmallard opened 2 years ago

theblackmallard commented 2 years ago

Is your feature request related to a problem? Please describe. Refreshing or closing the tab has no secondary verification which can lend itself to accidental failed swaps.

Describe the solution you'd like If you refresh the page or close the tab it will auto log you out (which is good) but there could be a verification you want to close the tab or refresh, especially if there is an ongoing swap which will be disrupted by the refresh/closing. An alert could indicate that there is an ongoing swap and that it will not be completed if the page is closed resulting in a loss of transaction fees.

Describe alternatives you've considered additional popups using things like javascript alert() may be treated as preventing user action (closing the tab) but considering the nature of this being a finance application, it seems confirmation should take priority.

tonymorony commented 2 years ago

Thank you for issue opening!

Yeah, it's definitely great thing to have, especially if user has swaps in progress/opened orders

For refreshing we do plan to try not logout the user but tab closing is also the clue, right (not sure tho if we'll able to do something if user is willing to close browser)