fix(ui): refresh sidebar playlist visibility
This commit is contained in:
1 parent
78ff72e58a
commit
7a142b8d3e
2 files changed
+6
No files matched your search
@@ -215,6 +215,10 @@
|
||||
loadUserPlaylists();
|
||||
}
|
||||
|
||||
export function refreshPlaylistSettings() {
|
||||
loadPlaylistSettings();
|
||||
}
|
||||
|
||||
// Menu handling functions
|
||||
function closeMenu() {
|
||||
menuOpen = false;
|
||||
|
||||
@@ -933,6 +933,7 @@
|
||||
showToast('Playlist created', 'success');
|
||||
}
|
||||
sidebarRef?.refreshPlaylists();
|
||||
sidebarRef?.refreshPlaylistSettings();
|
||||
}
|
||||
|
||||
function openImportPlaylist() {
|
||||
@@ -941,6 +942,7 @@
|
||||
|
||||
function handlePlaylistImported(summary: { qobuz_playlist_id?: number | null }) {
|
||||
sidebarRef?.refreshPlaylists();
|
||||
sidebarRef?.refreshPlaylistSettings();
|
||||
if (summary.qobuz_playlist_id) {
|
||||
selectPlaylist(summary.qobuz_playlist_id);
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user