diff options
author | Dessalines <tyhou13@gmx.com> | 2019-05-01 22:26:31 -0700 |
---|---|---|
committer | Dessalines <tyhou13@gmx.com> | 2019-05-01 22:26:31 -0700 |
commit | 2e487214ff90c150409eb789dd5a0998f4194afb (patch) | |
tree | 64a8559a8b5019f15ea96033ad0a63ffd0558064 /ui/src/components/login.tsx | |
parent | 40d5d7979ea4624fcd8558beb5689d23a8216279 (diff) |
Reworking some UI. Adding proper trending communities with hot rank.
- Breaking out subscribed and all into radios. Fixes #142
Diffstat (limited to 'ui/src/components/login.tsx')
-rw-r--r-- | ui/src/components/login.tsx | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/ui/src/components/login.tsx b/ui/src/components/login.tsx index 5c0b8dd1..b2ad70a1 100644 --- a/ui/src/components/login.tsx +++ b/ui/src/components/login.tsx @@ -95,7 +95,7 @@ export class Login extends Component<any, State> { </div> </div> </form> - Forgot your password or deleted your account? Reset your password. TODO + {/* Forgot your password or deleted your account? Reset your password. TODO */} </div> ); } @@ -161,7 +161,6 @@ export class Login extends Component<any, State> { event.preventDefault(); i.state.registerLoading = true; i.setState(i.state); - event.preventDefault(); let endTimer = new Date().getTime(); let elapsed = endTimer - i.state.registerForm.spam_timeri; @@ -209,14 +208,14 @@ export class Login extends Component<any, State> { return; } else { if (op == UserOperation.Login) { - this.state.loginLoading = false; - this.state.registerLoading = false; + this.state = this.emptyState; + this.setState(this.state); let res: LoginResponse = msg; UserService.Instance.login(res); this.props.history.push('/'); } else if (op == UserOperation.Register) { - this.state.loginLoading = false; - this.state.registerLoading = false; + this.state = this.emptyState; + this.setState(this.state); let res: LoginResponse = msg; UserService.Instance.login(res); this.props.history.push('/communities'); |