MCPcopy Create free account
hub / github.com/error311/FileRise / updateToggleState

Function updateToggleState

public/js/adminPanel.js:5737–5746  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

5735 };
5736
5737 const updateToggleState = () => {
5738 const hasQuery = !!normalizeAdminSearchText(input.value);
5739 if (toggleBtn) {
5740 toggleBtn.classList.toggle("is-active", hasQuery);
5741 }
5742 if (clearBtn) {
5743 clearBtn.hidden = !hasQuery;
5744 clearBtn.disabled = !hasQuery;
5745 }
5746 };
5747
5748 const restoreState = () => {
5749 ids.forEach(id => {

Callers 2

applyFilterFunction · 0.85
wireAdminPanelSearchFunction · 0.85

Calls 1

normalizeAdminSearchTextFunction · 0.85

Tested by

no test coverage detected