Added reorderable library columns

This commit is contained in:
Ben committed 2026-07-04 22:57:21 +02:00
1 parent d848efaf50
commit db426e351a
8 files changed
+536 -212

No files matched your search

+3
View File
@@ -226,6 +226,9 @@ export const api = {
`/api/playlists/${uuid}/add`,
{ track_ids: trackIds },
),
getPrefs: () => getJSON<Record<string, unknown>>('/api/prefs'),
patchPrefs: (patch: Record<string, unknown>) =>
send<Record<string, unknown>>('PATCH', '/api/prefs', patch),
save: () => send<SaveResult>('POST', '/api/save'),
editTrack: (trackId: string, fields: Record<string, string | number | null>) =>
send<{ status: string }>('PATCH', '/api/tracks', { track_id: trackId, fields }),