umap
umap copied to clipboard
Display an error in case the map is saved without a connexion
Describe the bug
At the moment, no error is returned in case the Save button is clicked while the user is offline.
Expected behavior
We want to display a feedback for the user.
Can't we detect the network status before and grey/deactivate the save button ?
It would mean we poll constantly?
Dunno :p How they do in hackmd or this kind of apps ? Websockets ?
Maybe one day https://developer.mozilla.org/en-US/docs/Web/API/NetworkInformation