guillaumepotier / Garlic.js

Automatically persist your forms' text and select field values locally, until the form is submitted.

Home Page:http://garlicjs.org/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

time of last save

turgs opened this issue · comments

commented

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".

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

commented