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

Function updateReadButtons

deployments/desktop/static/desktop.js:2423–2434  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

2421 const runButton = $("runDailyBtn");
2422 runButton.disabled = true;
2423 runButton.textContent = ui().papers.checkingCache;
2424 const pollToken = ++state.dailyPollToken;
2425 try {
2426 const data = await api("/api/daily/start", {
2427 method: "POST",
2428 body: JSON.stringify({ user_id: userId, days, target_date: $("paperDate").value, limit_per_source: configuredDailyLimit(), ...options })
2429 });
2430 const taskId = data.task?.task_id || "";
2431 if (data.cached || data.task?.status === "completed") {
2432 if (data.task?.push) renderPush(data.task.push, { fromCache: Boolean(data.cached || data.task.cached) });
2433 if (data.cached) showFeedbackToast("success", ui().papers.loadedCacheTitle, ui().papers.loadedCacheDetail);
2434 await loadWiki();
2435 return;
2436 }
2437 if (taskId) setDailyTaskState(taskId, userId, true);

Callers 1

updateSelectionSummaryFunction · 0.85

Calls 3

paperReportKeyFunction · 0.85
uiFunction · 0.85
getMethod · 0.80

Tested by

no test coverage detected