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

Function setDirectReadStatus

deployments/desktop/static/desktop.js:1639–1648  ·  view source on GitHub ↗
(kind, type, title, detail = "")

Source from the content-addressed store, hash-verified

1637 }
1638
1639 function setDirectReadStatus(kind, type, title, detail = "") {
1640 const { status } = directReadElements(kind);
1641 if (!status) return;
1642 status.className = `direct-read-status ${type || "success"}`;
1643 status.innerHTML = `
1644 <strong>${escapeHtml(title)}</strong>
1645 ${detail ? `<span>${escapeHtml(detail)}</span>` : ""}
1646 `;
1647 status.hidden = false;
1648 }
1649
1650 function setDirectReadBusy(kind, busy) {
1651 const { button } = directReadElements(kind);

Callers 1

directReadFunction · 0.85

Calls 2

directReadElementsFunction · 0.85
escapeHtmlFunction · 0.70

Tested by

no test coverage detected