should it have a confirmation option or undo option (after the deletion has executed)
-
undo is a bit more complex due to async nature of localForage/indexedDb functions
-
not even positive how you would track info to execute undo
- does that mean that you would add a flag to each indexedDb entry (justDeleted: boolean)
- there has to be some unique qualifier to know which entry to undo; and if deleted to know whether to display or not...
- then to avoid clutter, over time, need to actual delete stuff that you can no longer undo
- need to add a time limit to undo (like maybe a day? then need to store date deleted to compare to cur date and also the flag if entry eligible for undo)
-
make undo function as an enhancement for next version but it is a good problem to figure out in the long run...
should it have a confirmation option or undo option (after the deletion has executed)
undo is a bit more complex due to async nature of localForage/indexedDb functions
not even positive how you would track info to execute undo
make undo function as an enhancement for next version but it is a good problem to figure out in the long run...