MCPcopy Create free account
hub / github.com/OpenRaiser/PaperFlow / syncChoiceListFromSettings

Function syncChoiceListFromSettings

deployments/desktop/static/desktop.js:2126–2142  ·  view source on GitHub ↗
(id, values, enabled = true, options = {})

Source from the content-addressed store, hash-verified

2124 drift_state: raw.drift_state || {}
2125 },
2126 raw
2127 };
2128 }
2129 return { ok: false, error: `Unknown demo API route: ${route}` };
2130 }
2131
2132 function setView(name, updateHash = true, options = {}) {
2133 state.currentView = name;
2134 document.body.classList.toggle("chat-view", name === "chat");
2135 document.querySelectorAll(".view").forEach((view) => view.classList.toggle("active", view.id === name));
2136 document.querySelectorAll(".rail-item").forEach((button) => button.classList.toggle("active", button.dataset.view === name));
2137 const active = $(name);
2138 if (active) {
2139 updatePageTitle();
2140 }
2141 if (updateHash && window.location.hash.slice(1) !== name) {
2142 history.replaceState(null, "", `${window.location.pathname}${window.location.search}#${name}`);
2143 }
2144 window.scrollTo({ top: 0, left: 0 });
2145 if (name === "reports" && !options.skipLoad) runAction(() => refreshReports({ keepSelection: true }), "加载报告");

Callers 1

syncDailySourceControlsFunction · 0.85

Calls 3

splitListValueFunction · 0.85
defaultCheckedForSourceFunction · 0.85
$Function · 0.70

Tested by

no test coverage detected