mirror of
https://github.com/jeffvli/feishin.git
synced 2026-05-10 04:30:25 +02:00
hide grid from certain list configs
This commit is contained in:
@@ -11,7 +11,7 @@ import { usePlayerSong, usePlayerStoreBase } from '/@/renderer/store';
|
|||||||
import { ActionIcon } from '/@/shared/components/action-icon/action-icon';
|
import { ActionIcon } from '/@/shared/components/action-icon/action-icon';
|
||||||
import { Group } from '/@/shared/components/group/group';
|
import { Group } from '/@/shared/components/group/group';
|
||||||
import { QueueSong } from '/@/shared/types/domain-types';
|
import { QueueSong } from '/@/shared/types/domain-types';
|
||||||
import { ItemListKey } from '/@/shared/types/types';
|
import { ItemListKey, ListDisplayType } from '/@/shared/types/types';
|
||||||
|
|
||||||
interface PlayQueueListOptionsProps {
|
interface PlayQueueListOptionsProps {
|
||||||
handleSearch: (value: string) => void;
|
handleSearch: (value: string) => void;
|
||||||
@@ -138,6 +138,12 @@ export const PlayQueueListControls = ({
|
|||||||
value={searchTerm}
|
value={searchTerm}
|
||||||
/>
|
/>
|
||||||
<ListConfigMenu
|
<ListConfigMenu
|
||||||
|
displayTypes={[
|
||||||
|
{
|
||||||
|
hidden: true,
|
||||||
|
value: ListDisplayType.GRID,
|
||||||
|
},
|
||||||
|
]}
|
||||||
listKey={ItemListKey.SIDE_QUEUE}
|
listKey={ItemListKey.SIDE_QUEUE}
|
||||||
tableColumnsData={SONG_TABLE_COLUMNS}
|
tableColumnsData={SONG_TABLE_COLUMNS}
|
||||||
/>
|
/>
|
||||||
|
|||||||
+7
-1
@@ -14,7 +14,7 @@ import { Divider } from '/@/shared/components/divider/divider';
|
|||||||
import { Flex } from '/@/shared/components/flex/flex';
|
import { Flex } from '/@/shared/components/flex/flex';
|
||||||
import { Group } from '/@/shared/components/group/group';
|
import { Group } from '/@/shared/components/group/group';
|
||||||
import { LibraryItem, SongListSort, SortOrder } from '/@/shared/types/domain-types';
|
import { LibraryItem, SongListSort, SortOrder } from '/@/shared/types/domain-types';
|
||||||
import { ItemListKey } from '/@/shared/types/types';
|
import { ItemListKey, ListDisplayType } from '/@/shared/types/types';
|
||||||
|
|
||||||
export const PlaylistDetailSongListHeaderFilters = () => {
|
export const PlaylistDetailSongListHeaderFilters = () => {
|
||||||
const { playlistId } = useParams() as { playlistId: string };
|
const { playlistId } = useParams() as { playlistId: string };
|
||||||
@@ -52,6 +52,12 @@ export const PlaylistDetailSongListHeaderFilters = () => {
|
|||||||
</Group>
|
</Group>
|
||||||
<Group gap="sm" wrap="nowrap">
|
<Group gap="sm" wrap="nowrap">
|
||||||
<ListConfigMenu
|
<ListConfigMenu
|
||||||
|
displayTypes={[
|
||||||
|
{
|
||||||
|
hidden: true,
|
||||||
|
value: ListDisplayType.GRID,
|
||||||
|
},
|
||||||
|
]}
|
||||||
listKey={ItemListKey.PLAYLIST_SONG}
|
listKey={ItemListKey.PLAYLIST_SONG}
|
||||||
tableColumnsData={PLAYLIST_SONG_TABLE_COLUMNS}
|
tableColumnsData={PLAYLIST_SONG_TABLE_COLUMNS}
|
||||||
/>
|
/>
|
||||||
|
|||||||
Reference in New Issue
Block a user