rsanchez
2017-04-13 849f8f0acbe896cac7e531fee6895442382318cc
securis/src/main/webapp/src/app/menu.component.ts
....@@ -1,5 +1,5 @@
11 import { LocaleService } from './common/i18n';
2
-import { LocalStorageService } from 'angular-2-local-storage';
2
+import { Locker } from 'angular-safeguard';
33 import { Observable } from 'rxjs/Observable';
44 import { BaseRequestOptions, Http } from '@angular/http';
55 import { Component, ViewChild } from '@angular/core';
....@@ -18,7 +18,7 @@
1818 userFullName: string;
1919
2020 constructor(private userService: UserService,
21
- private store: LocalStorageService,
21
+ private store: Locker,
2222 private $L: LocaleService,
2323 private route: ActivatedRoute,
2424 private router: Router) {
....@@ -34,7 +34,7 @@
3434 if (this.route.firstChild == null) {
3535 this.router.navigate(['packs']);
3636 }
37
- this.userFullName = this.store.get<string>("user_full_name");
37
+ this.userFullName = this.store.get("user_full_name");
3838 }
3939 } ,
4040 err => /* Show message */ this.router.navigateByUrl('public/login'));