| .. | .. |
|---|
| 1 | 1 | import { LocaleService } from './common/i18n'; |
|---|
| 2 | | -import { LocalStorageService } from 'angular-2-local-storage'; |
|---|
| 2 | +import { Locker } from 'angular-safeguard'; |
|---|
| 3 | 3 | import { Observable } from 'rxjs/Observable'; |
|---|
| 4 | 4 | import { BaseRequestOptions, Http } from '@angular/http'; |
|---|
| 5 | 5 | import { Component, ViewChild } from '@angular/core'; |
|---|
| .. | .. |
|---|
| 18 | 18 | userFullName: string; |
|---|
| 19 | 19 | |
|---|
| 20 | 20 | constructor(private userService: UserService, |
|---|
| 21 | | - private store: LocalStorageService, |
|---|
| 21 | + private store: Locker, |
|---|
| 22 | 22 | private $L: LocaleService, |
|---|
| 23 | 23 | private route: ActivatedRoute, |
|---|
| 24 | 24 | private router: Router) { |
|---|
| .. | .. |
|---|
| 34 | 34 | if (this.route.firstChild == null) { |
|---|
| 35 | 35 | this.router.navigate(['packs']); |
|---|
| 36 | 36 | } |
|---|
| 37 | | - this.userFullName = this.store.get<string>("user_full_name"); |
|---|
| 37 | + this.userFullName = this.store.get("user_full_name"); |
|---|
| 38 | 38 | } |
|---|
| 39 | 39 | } , |
|---|
| 40 | 40 | err => /* Show message */ this.router.navigateByUrl('public/login')); |
|---|