MCPcopy Create free account
hub / github.com/CreminiAI/skillpack / updateOAuthUI

Function updateOAuthUI

web/js/api-key-dialog.js:346–367  ·  view source on GitHub ↗
(connected)

Source from the content-addressed store, hash-verified

344}
345
346function 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
369async function handleRestart() {
370 if (!restartBtn) return;

Callers 4

populateFormFunction · 0.85
handleOAuthLogoutFunction · 0.85
checkOAuthStatusFunction · 0.85
pollOAuthStatusFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected