feat(web): refresh the current view after deleting a song or playlist
Deletes left the removed item visible because the list loaders are cached (getPlaylists ~3 min): deletePlaylist navigated to a still-cached list, and deleteSong only reloaded playlists. Add refreshCurrentView() — drops the API cache and re-runs the active nav entry's loader (playlists, playlist/album/artist detail, starred, home, …). deleteSong calls it after the delete+rescan delay; deletePlaylist invalidates getPlaylists before navigating. Bump SW cache to ns-v46. Also record the post-1.2 work in the 1.2 changelog (importer Enter, search single-song + radio, NowPlaying order, official-audio artist-metadata match, JP-katakana album artist fix, year back-fill, delete refresh). Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
1 parent
966b318d9e
commit
d98978a6c7
5 files changed
+36
-8
No files matched your search
+1
-1
@@ -1,4 +1,4 @@
|
||||
const CACHE = 'ns-v45';
|
||||
const CACHE = 'ns-v46';
|
||||
const PRECACHE = ['/', 'index.html', 'manifest.json', 'icon.svg'];
|
||||
const SKIP_PATHS = ['/rest/stream', '/rest/download', '/config.js'];
|
||||
// Auth token params stripped from cache keys so artwork survives across sessions/token refreshes.
|
||||
|
||||
Reference in new issue
Block a user