| .. | .. |
|---|
| 22 | 22 | this.userService.isLoggedIn().subscribe(authOk => { |
|---|
| 23 | 23 | let isLoggedIn = authOk.valueOf(); |
|---|
| 24 | 24 | if (!isLoggedIn) { |
|---|
| 25 | | - this.router.navigateByUrl('nomenu/login'); |
|---|
| 25 | + this.router.navigateByUrl('public/login'); |
|---|
| 26 | + } else { |
|---|
| 27 | + this.router.navigate(['packs']); |
|---|
| 26 | 28 | } |
|---|
| 27 | 29 | } , |
|---|
| 28 | | - err => /* Show message */ this.router.navigateByUrl('nomenu/login')); |
|---|
| 30 | + err => /* Show message */ this.router.navigateByUrl('public/login')); |
|---|
| 31 | + } |
|---|
| 32 | + |
|---|
| 33 | + public logout() { |
|---|
| 34 | + this.userService.logout(); |
|---|
| 29 | 35 | } |
|---|
| 30 | 36 | |
|---|
| 31 | 37 | public closeMenu() { |
|---|