mirror of
https://github.com/jeffvli/feishin.git
synced 2026-05-06 20:10:12 +02:00
remove selection dialog from certain list views
This commit is contained in:
@@ -287,6 +287,7 @@ export interface ItemGridListProps {
|
||||
enableDrag?: boolean;
|
||||
enableExpansion?: boolean;
|
||||
enableSelection?: boolean;
|
||||
enableSelectionDialog?: boolean;
|
||||
gap?: 'lg' | 'md' | 'sm' | 'xl' | 'xs';
|
||||
getRowId?: ((item: unknown) => string) | string;
|
||||
initialTop?: {
|
||||
@@ -309,6 +310,7 @@ const BaseItemGridList = ({
|
||||
enableDrag = true,
|
||||
enableExpansion = false,
|
||||
enableSelection = true,
|
||||
enableSelectionDialog = true,
|
||||
gap = 'sm',
|
||||
getRowId,
|
||||
initialTop,
|
||||
@@ -745,7 +747,7 @@ const BaseItemGridList = ({
|
||||
</AutoSizer>
|
||||
<AnimatePresence presenceAffectsLayout>
|
||||
<ExpandedContainer internalState={internalState} itemType={itemType} />
|
||||
<SelectionDialog internalState={internalState} />
|
||||
{enableSelectionDialog && <SelectionDialog internalState={internalState} />}
|
||||
</AnimatePresence>
|
||||
</motion.div>
|
||||
);
|
||||
|
||||
@@ -673,6 +673,7 @@ interface ItemTableListProps {
|
||||
enableHorizontalBorders?: boolean;
|
||||
enableRowHoverHighlight?: boolean;
|
||||
enableSelection?: boolean;
|
||||
enableSelectionDialog?: boolean;
|
||||
enableStickyGroupRows?: boolean;
|
||||
enableStickyHeader?: boolean;
|
||||
enableVerticalBorders?: boolean;
|
||||
@@ -714,6 +715,7 @@ const BaseItemTableList = ({
|
||||
enableHorizontalBorders = false,
|
||||
enableRowHoverHighlight = true,
|
||||
enableSelection = true,
|
||||
enableSelectionDialog = true,
|
||||
enableStickyGroupRows = false,
|
||||
enableStickyHeader = false,
|
||||
enableVerticalBorders = false,
|
||||
@@ -2319,7 +2321,7 @@ const BaseItemTableList = ({
|
||||
totalRowCount={totalRowCount}
|
||||
/>
|
||||
<ExpandedContainer internalState={internalState} itemType={itemType} />
|
||||
<SelectionDialog internalState={internalState} />
|
||||
{enableSelectionDialog && <SelectionDialog internalState={internalState} />}
|
||||
</motion.div>
|
||||
);
|
||||
};
|
||||
|
||||
@@ -677,6 +677,7 @@ const AlbumDetailSongsTable = ({ songs }: AlbumDetailSongsTableProps) => {
|
||||
enableHorizontalBorders={tableConfig.enableHorizontalBorders}
|
||||
enableRowHoverHighlight={tableConfig.enableRowHoverHighlight}
|
||||
enableSelection
|
||||
enableSelectionDialog={false}
|
||||
enableStickyGroupRows
|
||||
enableStickyHeader
|
||||
enableVerticalBorders={tableConfig.enableVerticalBorders}
|
||||
|
||||
@@ -305,6 +305,7 @@ const AlbumArtistMetadataTopSongs = ({
|
||||
/>
|
||||
</Group>
|
||||
<ItemTableList
|
||||
enableSelectionDialog={false}
|
||||
activeRowId={currentSongId}
|
||||
autoFitColumns={tableConfig.autoFitColumns}
|
||||
CellComponent={ItemTableListColumn}
|
||||
|
||||
@@ -127,6 +127,7 @@ const AlbumArtistDetailTopSongsListRoute = () => {
|
||||
enableHorizontalBorders={tableConfig.enableHorizontalBorders}
|
||||
enableRowHoverHighlight={tableConfig.enableRowHoverHighlight}
|
||||
enableSelection
|
||||
enableSelectionDialog={false}
|
||||
enableVerticalBorders={tableConfig.enableVerticalBorders}
|
||||
itemType={LibraryItem.SONG}
|
||||
onColumnReordered={handleColumnReordered}
|
||||
|
||||
@@ -169,6 +169,7 @@ export const PlayQueue = forwardRef<ItemListHandle, QueueProps>(({ listKey, sear
|
||||
enableHorizontalBorders={table.enableHorizontalBorders}
|
||||
enableRowHoverHighlight={table.enableRowHoverHighlight}
|
||||
enableSelection
|
||||
enableSelectionDialog={false}
|
||||
enableVerticalBorders={table.enableVerticalBorders}
|
||||
getRowId="_uniqueId"
|
||||
groups={groups.length > 0 ? groups : undefined}
|
||||
|
||||
@@ -55,6 +55,7 @@ export const SimilarSongsList = ({ count, song }: SimilarSongsListProps) => {
|
||||
return (
|
||||
<ErrorBoundary FallbackComponent={ErrorFallback}>
|
||||
<ItemTableList
|
||||
enableSelectionDialog={false}
|
||||
autoFitColumns={table?.autoFitColumns}
|
||||
CellComponent={ItemTableListColumn}
|
||||
columns={table?.columns || []}
|
||||
|
||||
Reference in New Issue
Block a user