MCPcopy Create free account
hub / github.com/Dispatcharr/Dispatcharr / toggleActive

Function toggleActive

frontend/src/components/tables/M3UsTable.jsx:460–473  ·  view source on GitHub ↗
(playlist)

Source from the content-addressed store, hash-verified

458 };
459
460 const toggleActive = async (playlist) => {
461 try {
462 // Send only the is_active field to trigger our special handling
463 await API.updatePlaylist(
464 {
465 id: playlist.id,
466 is_active: !playlist.is_active,
467 },
468 true
469 ); // Add a new parameter to indicate this is just a toggle
470 } catch (error) {
471 console.error('Error toggling active state:', error);
472 }
473 };
474
475 const columns = useMemo(
476 () => [

Callers 1

M3UTableFunction · 0.70

Calls 1

updatePlaylistMethod · 0.80

Tested by

no test coverage detected