MCPcopy Create free account
hub / github.com/CreminiAI/skillpack / handleRestart

Function handleRestart

web/js/api-key-dialog.js:369–386  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

367}
368
369async function handleRestart() {
370 if (!restartBtn) return;
371
372 restartBtn.disabled = true;
373 if (saveBtn) saveBtn.disabled = true;
374 setStatus("Restarting service...", "warning");
375
376 try {
377 await restartRuntime();
378 setTimeout(() => {
379 window.location.reload();
380 }, 6000);
381 } catch (err) {
382 if (saveBtn) saveBtn.disabled = false;
383 restartBtn.disabled = false;
384 setStatus("Restart failed: " + err.message, "error");
385 }
386}
387
388function updateRestartButton(show) {
389 if (!restartBtn) return;

Callers

nothing calls this directly

Calls 2

restartRuntimeFunction · 0.90
setStatusFunction · 0.70

Tested by

no test coverage detected