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

Function selectConfigItem

web/js/app.js:720–726  ·  view source on GitHub ↗
(index)

Source from the content-addressed store, hash-verified

718 list.querySelectorAll('.config-row').forEach(row => row.addEventListener('click', () => selectConfigItem(Number(row.dataset.index))));
719}
720function selectConfigItem(index){
721 const item = configItems()[index];
722 if(!item) return;
723 S.admin.selectedIndex = index;
724 renderConfigList();
725 renderConfigEditor(item);
726}
727function renderConfigEditor(item){
728 const def = activeConfigDef();
729 const editing = S.admin.selectedIndex >= 0 && item;

Callers 1

renderConfigListFunction · 0.85

Calls 3

configItemsFunction · 0.85
renderConfigListFunction · 0.85
renderConfigEditorFunction · 0.85

Tested by

no test coverage detected