(message: string, type: 'success' | 'warning' | 'error' = 'success')
| 153 | } |
| 154 | |
| 155 | function showStatus(message: string, type: 'success' | 'warning' | 'error' = 'success'): void { |
| 156 | const el = document.getElementById('statusMessage'); |
| 157 | if (!el) return; |
| 158 | |
| 159 | el.textContent = message; |
| 160 | el.className = `status-message show ${type}`; |
| 161 | |
| 162 | setTimeout(() => { |
| 163 | el.classList.remove('show'); |
| 164 | }, 5000); |
| 165 | } |
| 166 | |
| 167 | function showWarningToast(message: string, duration = 5000): void { |
| 168 | const toast = document.getElementById('warningToast'); |
no outgoing calls
no test coverage detected