This commit is contained in:
Dessalines 2019-04-25 20:14:52 -07:00
parent 1e0aa5dd3d
commit 9374aefa56
3 changed files with 8 additions and 3 deletions

View file

@ -969,7 +969,7 @@ impl Perform for ListCommunities {
let sort = SortType::from_str(&self.sort)?;
let communities: Vec<CommunityView> = CommunityView::list(&conn, user_id, sort, self.page, self.limit)?;
let communities: Vec<CommunityView> = CommunityView::list(&conn, user_id, sort, self.page, Some(50))?;
// Return the jwt
Ok(

View file

@ -120,7 +120,10 @@ export class CommunityForm extends Component<CommunityFormProps, CommunityFormSt
if (i.props.community) {
WebSocketService.Instance.editCommunity(i.state.communityForm);
} else {
setTimeout(function(){
WebSocketService.Instance.createCommunity(i.state.communityForm);
}, 10000);
}
i.setState(i.state);
}

View file

@ -157,7 +157,9 @@ export class Login extends Component<any, State> {
i.state.registerLoading = true;
i.setState(i.state);
event.preventDefault();
setTimeout(function(){
WebSocketService.Instance.register(i.state.registerForm);
}, 10000);
}
handleRegisterUsernameChange(i: Login, event: any) {