mirror of
https://github.com/jeffvli/feishin.git
synced 2026-05-08 21:10:12 +02:00
add favorites list
This commit is contained in:
@@ -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,
|
||||
},
|
||||
),
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user