diff --git a/src/renderer/components/virtual-table/table-config-dropdown.tsx b/src/renderer/components/virtual-table/table-config-dropdown.tsx
index ada20cc7..5167aa0b 100644
--- a/src/renderer/components/virtual-table/table-config-dropdown.tsx
+++ b/src/renderer/components/virtual-table/table-config-dropdown.tsx
@@ -187,15 +187,17 @@ export const TableConfigDropdown = ({ type }: TableConfigDropdownProps) => {
/>
- Follow current song
-
-
-
-
+ {type !== 'albumDetail' && (
+ Follow current song
+
+
+
+
+ )}
{
return node.id?.startsWith('disc-');
@@ -60,52 +64,11 @@ export const AlbumDetailContent = ({ tableRef, background }: AlbumDetailContentP
const detailQuery = useAlbumDetail({ query: { id: albumId }, serverId: server?.id });
const cq = useContainerQuery();
const handlePlayQueueAdd = usePlayQueueAdd();
+ const tableConfig = useTableSettings('albumDetail');
- // TODO: Make this customizable
- const columnDefs: ColDef[] = useMemo(() => {
- const userRatingColumn =
- detailQuery?.data?.serverType !== ServerType.JELLYFIN
- ? [
- {
- column: TableColumn.USER_RATING,
- width: 0,
- },
- ]
- : [];
+ console.log('tableConfig :>> ', tableConfig);
- const cols: PersistedTableColumn[] = [
- {
- column: TableColumn.TRACK_NUMBER,
- width: 0,
- },
- {
- column: TableColumn.TITLE_COMBINED,
- width: 0,
- },
- {
- column: TableColumn.DURATION,
- width: 0,
- },
- {
- column: TableColumn.BIT_RATE,
- width: 0,
- },
- {
- column: TableColumn.PLAY_COUNT,
- width: 0,
- },
- {
- column: TableColumn.LAST_PLAYED,
- width: 0,
- },
- ...userRatingColumn,
- {
- column: TableColumn.USER_FAVORITE,
- width: 0,
- },
- ];
- return getColumnDefs(cols).filter((c) => c.colId !== 'album' && c.colId !== 'artist');
- }, [detailQuery?.data?.serverType]);
+ const columnDefs = useMemo(() => getColumnDefs(tableConfig.columns), [tableConfig.columns]);
const getRowHeight = useCallback((params: RowHeightParams) => {
if (isFullWidthRow(params.node)) {
@@ -307,11 +270,12 @@ export const AlbumDetailContent = ({ tableRef, background }: AlbumDetailContentP
- handlePlay(playButtonBehavior)} />
-
+
+ handlePlay(playButtonBehavior)} />
+
+
+
+
+
+
+
+
+
{showGenres && (
@@ -370,13 +349,12 @@ export const AlbumDetailContent = ({ tableRef, background }: AlbumDetailContentP
= {
arrayProperty?: string;