MCPcopy Create free account
hub / github.com/cppla/ServerStatus / setAdminStatus

Function setAdminStatus

web/js/app.js:609–613  ·  view source on GitHub ↗
(text, cls)

Source from the content-addressed store, hash-verified

607 }
608}
609function setAdminStatus(text, cls){
610 const el = $('adminStatus');
611 el.className = 'admin-status' + (cls ? ' ' + cls : '');
612 el.textContent = text;
613}
614async function loadConfig(){
615 const data = await api('/api/config');
616 S.admin.config = normalizeAdminConfig(data.config);

Callers 3

ensureAdminCheckedFunction · 0.85
loadConfigFunction · 0.85
bindAdminFunction · 0.85

Calls 1

$Function · 0.85

Tested by

no test coverage detected