From 849f8f0acbe896cac7e531fee6895442382318cc Mon Sep 17 00:00:00 2001
From: rsanchez <rsanchez@curisit.net>
Date: Thu, 13 Apr 2017 09:24:37 +0000
Subject: [PATCH] #0 config - Migrated to jspm and Angular 4.0.2
---
securis/src/main/webapp/src/app/menu.component.ts | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/securis/src/main/webapp/src/app/menu.component.ts b/securis/src/main/webapp/src/app/menu.component.ts
index 8866068..55a0178 100644
--- a/securis/src/main/webapp/src/app/menu.component.ts
+++ b/securis/src/main/webapp/src/app/menu.component.ts
@@ -1,5 +1,5 @@
import { LocaleService } from './common/i18n';
-import { LocalStorageService } from 'angular-2-local-storage';
+import { Locker } from 'angular-safeguard';
import { Observable } from 'rxjs/Observable';
import { BaseRequestOptions, Http } from '@angular/http';
import { Component, ViewChild } from '@angular/core';
@@ -18,7 +18,7 @@
userFullName: string;
constructor(private userService: UserService,
- private store: LocalStorageService,
+ private store: Locker,
private $L: LocaleService,
private route: ActivatedRoute,
private router: Router) {
@@ -34,7 +34,7 @@
if (this.route.firstChild == null) {
this.router.navigate(['packs']);
}
- this.userFullName = this.store.get<string>("user_full_name");
+ this.userFullName = this.store.get("user_full_name");
}
} ,
err => /* Show message */ this.router.navigateByUrl('public/login'));
--
Gitblit v1.3.2