private void OnValueChange(string text) { if (FormUtils.AreInputFieldsNotEmpty(email.text, password.text)) { if (!m_LoginBtn.IsInteractable()) { m_LoginBtn.interactable = true; } } else { if (m_LoginBtn.IsInteractable()) { m_LoginBtn.interactable = false; } } }
private void OnValueChange(string text) { if (FormUtils.AreInputFieldsNotEmpty(email.text)) { if (!btn.IsInteractable()) { btn.interactable = true; } } else { if (btn.IsInteractable()) { btn.interactable = false; } } }
private void OnDisplayNameChanged(string text) { if (!string.IsNullOrWhiteSpace(text) && text != originalDisplayName) { if (!saveUserButton.IsInteractable()) { saveUserButton.interactable = true; } } else { if (saveUserButton.IsInteractable()) { saveUserButton.interactable = false; } } }
private void OnPasswordValueChange(string text) { if (FormUtils.AreInputFieldsNotEmpty(password.text, newPassword.text, newPasswordConfirmation.text) && newPassword.text == newPasswordConfirmation.text) { if (!changePasswordButton.IsInteractable()) { changePasswordButton.interactable = true; } } else { if (changePasswordButton.IsInteractable()) { changePasswordButton.interactable = false; } } }