()
| 2833 | } |
| 2834 | |
| 2835 | function saveReportAnnotation() { |
| 2836 | const reportId = state.currentReport?.report_id; |
| 2837 | const body = $("reportViewerBody"); |
| 2838 | if (!reportId || !body || body.classList.contains("empty")) return; |
| 2839 | try { |
| 2840 | window.localStorage.setItem(reportAnnotationKey(reportId), body.innerHTML); |
| 2841 | $("clearReportAnnotationsBtn").disabled = false; |
| 2842 | } catch (error) { |
| 2843 | console.warn("Unable to save report annotation", error); |
| 2844 | } |
| 2845 | } |
| 2846 | |
| 2847 | function hideReportAnnotationToolbar() { |
| 2848 | const toolbar = document.querySelector(".annotation-toolbar"); |
no test coverage detected