umap icon indicating copy to clipboard operation
umap copied to clipboard

Display an error in case the map is saved without a connexion

Open davidbgk opened this issue 1 year ago • 4 comments

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.

davidbgk avatar Apr 15 '24 13:04 davidbgk

Can't we detect the network status before and grey/deactivate the save button ?

yohanboniface avatar Apr 15 '24 13:04 yohanboniface

It would mean we poll constantly?

davidbgk avatar Apr 15 '24 13:04 davidbgk

Dunno :p How they do in hackmd or this kind of apps ? Websockets ?

yohanboniface avatar Apr 15 '24 13:04 yohanboniface

Maybe one day https://developer.mozilla.org/en-US/docs/Web/API/NetworkInformation

davidbgk avatar Apr 15 '24 13:04 davidbgk