ASKnetCommunity / Training

This is the training plan to organize your own training.
https://training.asknet.community
GNU General Public License v3.0
5 stars 10 forks source link

add a local session cached option so when the page reloads one is able to resume #170

Closed timmwille closed 9 months ago

timmwille commented 11 months ago

might be linked to #143

timmwille commented 10 months ago

@saisilinus I noticed one more bug for the cache: if I put a time slot at the end of a module (not between) it gets deleted after reload :) the rest is cached perfectly to my observation.

saisilinus commented 10 months ago

Hmmm...very strange. I will check it out

saisilinus commented 10 months ago

I think the bug has to do with timing. When you add something to the configurator, several things such as time calculations and the insertions of daybreaks and timebreaks happen in the background. The cache is refreshed after all these steps so it could take a second or 2. If you reload the page before the cache is refreshed, you lose your latest changes.

I've added a Saving indicator that shows the user when the cache is refreshing so that you don't reload before it does.