MCPcopy Create free account
hub / github.com/codeaashu/claude-code / toggleAutoApprove

Function toggleAutoApprove

web/components/settings/PermissionSettings.tsx:32–39  ·  view source on GitHub ↗
(tool: string, value: boolean)

Source from the content-addressed store, hash-verified

30 const [newDir, setNewDir] = useState("");
31
32 function toggleAutoApprove(tool: string, value: boolean) {
33 updateSettings({
34 permissions: {
35 ...settings.permissions,
36 autoApprove: { ...settings.permissions.autoApprove, [tool]: value },
37 },
38 });
39 }
40
41 function addRestrictedDir() {
42 const dir = newDir.trim();

Callers 1

PermissionSettingsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected