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();
|
loadUserPlaylists();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
export function refreshPlaylistSettings() {
|
||||||
|
loadPlaylistSettings();
|
||||||
|
}
|
||||||
|
|
||||||
// Menu handling functions
|
// Menu handling functions
|
||||||
function closeMenu() {
|
function closeMenu() {
|
||||||
menuOpen = false;
|
menuOpen = false;
|
||||||
|
|||||||
@@ -933,6 +933,7 @@
|
|||||||
showToast('Playlist created', 'success');
|
showToast('Playlist created', 'success');
|
||||||
}
|
}
|
||||||
sidebarRef?.refreshPlaylists();
|
sidebarRef?.refreshPlaylists();
|
||||||
|
sidebarRef?.refreshPlaylistSettings();
|
||||||
}
|
}
|
||||||
|
|
||||||
function openImportPlaylist() {
|
function openImportPlaylist() {
|
||||||
@@ -941,6 +942,7 @@
|
|||||||
|
|
||||||
function handlePlaylistImported(summary: { qobuz_playlist_id?: number | null }) {
|
function handlePlaylistImported(summary: { qobuz_playlist_id?: number | null }) {
|
||||||
sidebarRef?.refreshPlaylists();
|
sidebarRef?.refreshPlaylists();
|
||||||
|
sidebarRef?.refreshPlaylistSettings();
|
||||||
if (summary.qobuz_playlist_id) {
|
if (summary.qobuz_playlist_id) {
|
||||||
selectPlaylist(summary.qobuz_playlist_id);
|
selectPlaylist(summary.qobuz_playlist_id);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in new issue
Block a user