MCPcopy Index your code
hub / github.com/ChatLab/ChatLab / setEnabled

Function setEnabled

src/stores/apiServer.ts:296–306  ·  view source on GitHub ↗
(enabled: boolean)

Source from the content-addressed store, hash-verified

294 }
295
296 async function setEnabled(enabled: boolean) {
297 loading.value = true
298 try {
299 status.value = await transport.setEnabled(enabled)
300 await fetchConfig()
301 } catch (err) {
302 console.error('[ApiServerStore] Failed to set enabled:', err)
303 } finally {
304 loading.value = false
305 }
306 }
307
308 async function setPort(port: number) {
309 loading.value = true

Callers

nothing calls this directly

Calls 3

fetchConfigFunction · 0.85
setEnabledMethod · 0.65
errorMethod · 0.65

Tested by

no test coverage detected