[web] Fix playlist page displaying one ghost entry when no playlist are present

When there are no playlists or all of them are filtered out, the list of playlists is now completely empty.
This commit is contained in:
Alain Nussbaumer
2023-07-18 14:08:52 +02:00
parent 19cdd895f0
commit 34ea8115a8
10 changed files with 40 additions and 28 deletions

View File

@@ -25,9 +25,9 @@ import PageFiles from '@/pages/PageFiles.vue'
import PageGenreAlbum from '@/pages/PageGenreAlbum.vue'
import PageGenreTracks from '@/pages/PageGenreTracks.vue'
import PageGenres from '@/pages/PageGenres.vue'
import PagePlaylist from '@/pages/PagePlaylist.vue'
import PagePlaylistSpotify from '@/pages/PagePlaylistSpotify.vue'
import PagePlaylistFolder from '@/pages/PagePlaylistFolder.vue'
import PagePlaylistTracks from '@/pages/PagePlaylistTracks.vue'
import PagePlaylistTracksSpotify from '@/pages/PagePlaylistTracksSpotify.vue'
import PagePodcast from '@/pages/PagePodcast.vue'
import PagePodcasts from '@/pages/PagePodcasts.vue'
import PageNowPlaying from '@/pages/PageNowPlaying.vue'
@@ -211,26 +211,26 @@ export const router = createRouter({
{
name: 'playlists',
path: '/playlists',
redirect: { name: 'playlist', params: { id: 0 } }
redirect: { name: 'playlist-folder', params: { id: 0 } }
},
{
component: PagePlaylist,
component: PagePlaylistFolder,
meta: { show_progress: true },
name: 'playlist',
name: 'playlist-folder',
path: '/playlists/:id'
},
{
component: PagePlaylistSpotify,
meta: { show_progress: true },
name: 'playlist-spotify',
path: '/playlists/spotify/:id'
},
{
component: PagePlaylistTracks,
meta: { show_progress: true },
name: 'playlist-tracks',
name: 'playlist',
path: '/playlists/:id/tracks'
},
{
component: PagePlaylistTracksSpotify,
meta: { show_progress: true },
name: 'playlist-spotify',
path: '/playlists/spotify/:id/tracks'
},
{
component: PagePodcast,
meta: { show_progress: true },