From 259d989404ffbb541b26d7fb687581e2b57111ae Mon Sep 17 00:00:00 2001
From: rsanchez <rsanchez@curisit.net>
Date: Wed, 15 Mar 2017 15:46:39 +0000
Subject: [PATCH] Merge branch 'angular2' of https://rsanchez@git.curisit.net/gitblit/git/common/securis.git into angular2
---
securis/src/main/webapp/src/app/home.component.ts | 14 +-------------
1 files changed, 1 insertions(+), 13 deletions(-)
diff --git a/securis/src/main/webapp/src/app/home.component.ts b/securis/src/main/webapp/src/app/home.component.ts
index d905c50..de7dfb2 100644
--- a/securis/src/main/webapp/src/app/home.component.ts
+++ b/securis/src/main/webapp/src/app/home.component.ts
@@ -28,20 +28,12 @@
toaster: ToastsManager,
vRef: ViewContainerRef,
private router: Router,
- http: Http,
private media: TdMediaService,
private _iconRegistry: MdIconRegistry,
private _domSanitizer: DomSanitizer,
private store: LocalStorageService) {
this.registerIcons();
toaster.setRootViewContainerRef(vRef);
- http.get("version", /* workaround to avoid OPTIONS method request*/ new BaseRequestOptions())
- .map((res) => <string>res.json().version)
- .subscribe(
- version => this.securisVersion = version,
- err => this.securisVersion = '0.0.0'
- );
-
}
private registerIcons() : void {
@@ -61,11 +53,7 @@
}
ngOnInit(): void {
- this.userService.isLoggedIn().subscribe(authOk => {
- this.isLoggedIn = true//authOk.valueOf();
- this.router.navigateByUrl(this.isLoggedIn ? 'packs' : 'login');
- } ,
- err => /* Show message */ this.router.navigateByUrl('login'));
+ this.router.navigateByUrl('nomenu/login');
}
ngAfterViewInit(): void {
--
Gitblit v1.3.2