feat(titlebar): add Playlists to favorites dropdown in titlebar nav

Add ListMusic icon and playlists tab to TitleBarNav favorites dropdown,
matching the sidebar fix.

cc
This commit is contained in:
victorrhgap committed 2026-03-31 13:55:09 -06:00
1 parent b00f294e1c
commit 93374080a0
1 file changed
+4 -2
+4 -2
View File
@@ -1,5 +1,5 @@
<script lang="ts">
import { Heart, HardDrive, ChevronDown, User, Disc, Music, ShoppingBag } from 'lucide-svelte';
import { Heart, HardDrive, ChevronDown, User, Disc, Music, ListMusic, ShoppingBag } from 'lucide-svelte';
import { t } from '$lib/i18n';
interface Props {
@@ -18,7 +18,7 @@
activeView,
activeItemId,
onNavigate,
favoritesTabOrder = ['tracks', 'albums', 'artists'],
favoritesTabOrder = ['tracks', 'albums', 'artists', 'playlists'],
position = 'left',
showDiscover = false,
showFavorites = false,
@@ -209,6 +209,8 @@
<Disc size={12} />
{:else if tab === 'artists'}
<User size={12} />
{:else if tab === 'playlists'}
<ListMusic size={12} />
{/if}
<span>{$t(`favorites.${tab}`)}</span>
</button>