(kind, busy)
| 1648 | } |
| 1649 | |
| 1650 | function setDirectReadBusy(kind, busy) { |
| 1651 | const { button } = directReadElements(kind); |
| 1652 | if (!button) return; |
| 1653 | button.disabled = busy; |
| 1654 | button.classList.toggle("loading", busy); |
| 1655 | button.textContent = busy ? ui().papers.generating : ui().reports.generate; |
| 1656 | } |
| 1657 | |
| 1658 | function flashButtonFeedback(button, type = "click") { |
| 1659 | if (!button || (button.disabled && type === "click")) return; |
no test coverage detected