guillaumepotier / Garlic.js

Automatically persist your forms' text and select field values locally, until the form is submitted.
http://garlicjs.org/
Other
2.36k stars 176 forks source link

time of last save #113

Open turgs opened 6 years ago

turgs commented 6 years ago

Is there a way to get a timestamp for when the form was last edited to tell how stale the draft is?

I'd like to tell my users: "Previous draft restored from 3 days ago".

guillaumepotier commented 6 years ago

Hi there,

This is something not implemented. Garlic may store a timestamp each time it saves something in storage and an API to get that value. The message would be up to the developper implementing garlic imo.

Feel free to have a try and submit a PR.

Best

turgs commented 6 years ago

I'll see what I can come up with

On 19/01/2018 6:04 PM, "Guillaume Potier" notifications@github.com wrote:

Hi there,

This is something not implemented. Garlic may store a timestamp each time it saves something in storage and an API to get that value. The message would be up to the developper implementing garlic imo.

Feel free to have a try and submit a PR.

Best

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/guillaumepotier/Garlic.js/issues/113#issuecomment-358893869, or mute the thread https://github.com/notifications/unsubscribe-auth/ABQGXM4gubUfyK1wLfw4HYo86nroKnidks5tMEyBgaJpZM4RkCIZ .