Open salts633 opened 4 years ago
Providing an 'update everything now' button (up arrow, down arrow symbol or maybe down arrow with a bar under it?) would be good so users can be sure the list is up to date to pull down any photos they just added.
I've started working on this in the fix_refresh branch. So far I've added in a button force the album list to refresh. HOWEVER, the refresh button needs styling. Currently it looks like an album but gives no feedback when it is clicked.
This button is probably enough to take care of album updating, effectively it's updated at startup or manually.
Downloading the photo list every time the photo is updated is still wasteful, it needs to be moved in to a separate function that can be called periodically AND after the album list is updated.
Seen as the album list could get long the update album list button should be moved to the start of it.
Currently the album list is only updated on startup and the list of photos in the album is updated at whatever the photo_update_frequency in the config is, even though this is meant to be the frequency at which a new individual photo is sent to the browser.
It would be more sensible to update the list of albums a few times a day and the list of photos once every few hours (or perhaps at some multiple of the individual photo update frequency).