(connected)
| 344 | } |
| 345 | |
| 346 | function updateOAuthUI(connected) { |
| 347 | if (connected) { |
| 348 | if (oauthStatusIndicator) { |
| 349 | oauthStatusIndicator.classList.remove("oauth-disconnected"); |
| 350 | oauthStatusIndicator.classList.add("oauth-connected"); |
| 351 | } |
| 352 | if (oauthStatusText) oauthStatusText.textContent = "Connected"; |
| 353 | if (oauthLoginBtn) oauthLoginBtn.style.display = "none"; |
| 354 | if (oauthLogoutBtn) oauthLogoutBtn.style.display = ""; |
| 355 | } else { |
| 356 | if (oauthStatusIndicator) { |
| 357 | oauthStatusIndicator.classList.add("oauth-disconnected"); |
| 358 | oauthStatusIndicator.classList.remove("oauth-connected"); |
| 359 | } |
| 360 | if (oauthStatusText) oauthStatusText.textContent = "Not Connected"; |
| 361 | if (oauthLoginBtn) { |
| 362 | oauthLoginBtn.style.display = ""; |
| 363 | oauthLoginBtn.disabled = false; |
| 364 | } |
| 365 | if (oauthLogoutBtn) oauthLogoutBtn.style.display = "none"; |
| 366 | } |
| 367 | } |
| 368 | |
| 369 | async function handleRestart() { |
| 370 | if (!restartBtn) return; |
no outgoing calls
no test coverage detected