add favorites list

This commit is contained in:
jeffvli
2025-11-30 01:12:29 -08:00
parent 1c0cbafa3e
commit cb3c0fe0d4
17 changed files with 377 additions and 9 deletions
+16 -1
View File
@@ -527,6 +527,12 @@ export const sidebarItems: SidebarItemType[] = [
route: generatePath(AppRoute.SEARCH, { itemType: LibraryItem.SONG }),
},
{ disabled: false, id: 'Home', label: i18n.t('page.sidebar.home'), route: AppRoute.HOME },
{
disabled: false,
id: 'Favorites',
label: i18n.t('page.sidebar.favorites'),
route: AppRoute.FAVORITES,
},
{
disabled: false,
id: 'Albums',
@@ -1291,10 +1297,19 @@ export const useSettingsStore = createWithEqualityFn<SettingsSlice>()(
return state;
}
if (version <= 10) {
state.general.sidebarItems.push({
disabled: false,
id: 'Favorites',
label: i18n.t('page.sidebar.favorites'),
route: AppRoute.FAVORITES,
});
}
return persistedState;
},
name: 'store_settings',
version: 10,
version: 11,
},
),
);