MCPcopy Index your code
hub / github.com/firebase/quickstart-js / updateEnrollSendCodeButtonUI

Function updateEnrollSendCodeButtonUI

auth/mfa-password.ts:531–536  ·  view source on GitHub ↗

* Updates the enroll send code button state depending on form values state.

()

Source from the content-addressed store, hash-verified

529 * Updates the enroll send code button state depending on form values state.
530 */
531function updateEnrollSendCodeButtonUI() {
532 const sendCode = document.getElementById(
533 'enroll-send-code-button',
534 )! as HTMLButtonElement;
535 sendCode.disabled = !isCaptchaOK() || !isPhoneNumberValid();
536}
537
538/**
539 * Updates the sign in send code button state depending on form values state.

Callers 3

updateMfaDialogFunction · 0.85
renderRecaptchaFunction · 0.85
onEnrollSendCodeFunction · 0.85

Calls 2

isCaptchaOKFunction · 0.70
isPhoneNumberValidFunction · 0.70

Tested by

no test coverage detected