mirror of
https://github.com/jeffvli/feishin.git
synced 2026-05-06 20:10:12 +02:00
* Add play button to song table album cover, like it is in grid * Fix: play button caused error for albums and artists tables * Fix: play button caused error for some other tables
This commit is contained in:
@@ -464,6 +464,7 @@ export const AlbumDetailContent = ({ tableRef, background }: AlbumDetailContentP
|
|||||||
context={{
|
context={{
|
||||||
currentSong,
|
currentSong,
|
||||||
isFocused,
|
isFocused,
|
||||||
|
itemType: LibraryItem.SONG,
|
||||||
onCellContextMenu,
|
onCellContextMenu,
|
||||||
status,
|
status,
|
||||||
}}
|
}}
|
||||||
|
|||||||
@@ -550,6 +550,9 @@ export const AlbumArtistDetailContent = ({ background }: AlbumArtistDetailConten
|
|||||||
suppressLoadingOverlay
|
suppressLoadingOverlay
|
||||||
suppressRowDrag
|
suppressRowDrag
|
||||||
columnDefs={topSongsColumnDefs}
|
columnDefs={topSongsColumnDefs}
|
||||||
|
context={{
|
||||||
|
itemType: LibraryItem.SONG,
|
||||||
|
}}
|
||||||
enableCellChangeFlash={false}
|
enableCellChangeFlash={false}
|
||||||
getRowId={(data) => data.data.uniqueId}
|
getRowId={(data) => data.data.uniqueId}
|
||||||
rowData={topSongs}
|
rowData={topSongs}
|
||||||
|
|||||||
@@ -257,6 +257,7 @@ export const PlayQueue = forwardRef(({ type }: QueueProps, ref: Ref<any>) => {
|
|||||||
context={{
|
context={{
|
||||||
currentSong,
|
currentSong,
|
||||||
isFocused,
|
isFocused,
|
||||||
|
itemType: LibraryItem.SONG,
|
||||||
onCellContextMenu,
|
onCellContextMenu,
|
||||||
status,
|
status,
|
||||||
}}
|
}}
|
||||||
|
|||||||
@@ -301,6 +301,7 @@ export const PlaylistDetailSongListContent = ({ songs, tableRef }: PlaylistDetai
|
|||||||
context={{
|
context={{
|
||||||
currentSong,
|
currentSong,
|
||||||
isFocused,
|
isFocused,
|
||||||
|
itemType: LibraryItem.SONG,
|
||||||
onCellContextMenu: handleContextMenu,
|
onCellContextMenu: handleContextMenu,
|
||||||
status,
|
status,
|
||||||
}}
|
}}
|
||||||
|
|||||||
@@ -66,6 +66,7 @@ export const SimilarSongsList = ({ count, fullScreen, song }: SimilarSongsListPr
|
|||||||
columnDefs={columnDefs}
|
columnDefs={columnDefs}
|
||||||
context={{
|
context={{
|
||||||
count,
|
count,
|
||||||
|
itemType: LibraryItem.SONG,
|
||||||
onCellContextMenu,
|
onCellContextMenu,
|
||||||
song,
|
song,
|
||||||
}}
|
}}
|
||||||
|
|||||||
Reference in New Issue
Block a user