MCPcopy Create free account
hub / github.com/NativeScript/sample-Groceries / submit

Method submit

app/login/login.component.ts:46–58  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

44 }
45
46 submit() {
47 if (!this.user.isValidEmail()) {
48 alert("Enter a valid email address.");
49 return;
50 }
51
52 this.isAuthenticating = true;
53 if (this.isLoggingIn) {
54 this.login();
55 } else {
56 this.signUp();
57 }
58 }
59
60 login() {
61 if (getConnectionType() === connectionType.none) {

Callers

nothing calls this directly

Calls 4

loginMethod · 0.95
signUpMethod · 0.95
alertFunction · 0.90
isValidEmailMethod · 0.80

Tested by

no test coverage detected