diff --git a/frontend/src/api/client.ts b/frontend/src/api/client.ts index 609727f..38047b0 100644 --- a/frontend/src/api/client.ts +++ b/frontend/src/api/client.ts @@ -57,6 +57,11 @@ export const api = { setVolume: (volume: number) => post('/api/volume', { volume }), setVolumeBoost: (enabled?: boolean) => post<{ status: string; volume_boost: boolean }>('/api/volume_boost', { enabled }), + toggleEffect: (effectId: string, enabled?: boolean) => + post<{ status: string; effect_id: string; active: boolean; active_effects: string[] }>( + '/api/effects/toggle', + { effect_id: effectId, enabled }, + ), cycleLoop: () => post<{ mode: 'off' | 'playlist' | 'single' }>('/api/loop_cycle'), jump: (index: number) => post('/api/jump', { index }), diff --git a/frontend/src/components/PlayerPanel.vue b/frontend/src/components/PlayerPanel.vue index 66c7e48..17d3922 100644 --- a/frontend/src/components/PlayerPanel.vue +++ b/frontend/src/components/PlayerPanel.vue @@ -1,6 +1,7 @@