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

Function setReportLinks

deployments/desktop/static/desktop.js:2993–3005  ·  view source on GitHub ↗
(report)

Source from the content-addressed store, hash-verified

2991 }
2992
2993 function setReportLinks(report) {
2994 const map = {
2995 openReportAbsBtn: report.abs_url || report.url || "",
2996 openReportPdfBtn: report.pdf_url || "",
2997 openReportDocBtn: report.doc_url || "",
2998 copyReportPathBtn: report.report_path || ""
2999 };
3000 Object.entries(map).forEach(([id, value]) => {
3001 const button = $(id);
3002 button.disabled = !value;
3003 button.dataset.href = value;
3004 });
3005 }
3006
3007 async function loadReportContent(reportId, silent = false) {
3008 if (!reportId) return;

Callers 2

clearReportViewerFunction · 0.85
loadReportContentFunction · 0.85

Calls 1

$Function · 0.70

Tested by

no test coverage detected