Skip to content

Commit

Permalink
merge
Browse files Browse the repository at this point in the history
  • Loading branch information
thomasmcdonald1996 committed Aug 27, 2018
2 parents f121fe7 + a8cf0e9 commit 2b4da35
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 6 deletions.
2 changes: 1 addition & 1 deletion src/app/dashboard/dashboard.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ import {MatDialog, MatDialogRef, MAT_DIALOG_DATA} from '@angular/material';
export class DashboardComponent implements OnInit {
private url = 'http://localhost:8080';
private C9URL = 'https://node-garbage-thomasmcdonald1996.c9users.io';
private prodURL = 'https://chat-factory.herokuapp.com/';
private prodURL = 'https://chat-factory.herokuapp.com';

private socket;
public userDetails;
Expand Down
3 changes: 2 additions & 1 deletion src/app/login/login.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,8 @@ export class LoginComponent implements OnInit {
public socket;
public url = 'http://localhost:8080';
public C9URL = 'https://node-garbage-thomasmcdonald1996.c9users.io';
private prodURL = 'https://chat-factory.herokuapp.com/';
private prodURL = 'https://chat-factory.herokuapp.com';

public userDetails = {
username: "",
password: "",
Expand Down
4 changes: 2 additions & 2 deletions src/app/modals/new-user/new-user.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ import {ErrorStateMatcher} from '@angular/material/core';
export class NewUserComponent implements OnInit {
private url = 'http://localhost:8080';
private C9URL = 'https://node-garbage-thomasmcdonald1996.c9users.io';

private prodURL = 'https://chat-factory.herokuapp.com';
newUserForm = this.fb.group({
email: ['', Validators.required],
username: ['', Validators.required],
Expand All @@ -28,7 +28,7 @@ export class NewUserComponent implements OnInit {
}

onCloseConfirm() {
this.http.post(this.C9URL+'/createUser', this.newUserForm.value)
this.http.post(this.prodURL+'/createUser', this.newUserForm.value)
.subscribe(
res => {
this.dialogRef.close(res);
Expand Down
4 changes: 2 additions & 2 deletions src/app/room/room.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,8 @@ export class RoomComponent implements OnInit {

private url = 'http://localhost:8080';
private C9URL = 'https://node-garbage-thomasmcdonald1996.c9users.io';
private prodURL = 'https://chat-factory.herokuapp.com/';
private prodURL = 'https://chat-factory.herokuapp.com';


constructor(private dataService: DataService,private activatedRoute: ActivatedRoute, private router: Router, public dialog: MatDialog, private http: HttpClient) {
this.paramsSubscribe=this.activatedRoute.params.subscribe(params => {
Expand Down

0 comments on commit 2b4da35

Please sign in to comment.