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

Function toggleReportCardHighlight

deployments/desktop/static/desktop.js:2731–2742  ·  view source on GitHub ↗
(reportId)

Source from the content-addressed store, hash-verified

2729 }
2730
2731 function toggleReportCardHighlight(reportId) {
2732 if (!reportId) return;
2733 if (state.highlightedReports.has(reportId)) {
2734 state.highlightedReports.delete(reportId);
2735 showFeedbackToast("success", "已取消高亮", reportId);
2736 } else {
2737 state.highlightedReports.add(reportId);
2738 showFeedbackToast("success", "已高亮报告", "右键可取消高亮");
2739 }
2740 saveReportCardHighlights();
2741 renderReportList(state.reports, state.currentReport?.report_id || reportId);
2742 }
2743
2744 function reportContextLabels(reportId) {
2745 const isEn = responseLanguage() === "en";

Callers 1

ensureReportContextMenuFunction · 0.85

Calls 3

showFeedbackToastFunction · 0.85
saveReportCardHighlightsFunction · 0.85
renderReportListFunction · 0.70

Tested by

no test coverage detected