(kind, type, title, detail = "")
| 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); |
no test coverage detected