rsanchez
2017-03-15 259d989404ffbb541b26d7fb687581e2b57111ae
securis/src/main/webapp/src/app/home.component.ts
....@@ -28,20 +28,12 @@
2828 toaster: ToastsManager,
2929 vRef: ViewContainerRef,
3030 private router: Router,
31
- http: Http,
3231 private media: TdMediaService,
3332 private _iconRegistry: MdIconRegistry,
3433 private _domSanitizer: DomSanitizer,
3534 private store: LocalStorageService) {
3635 this.registerIcons();
3736 toaster.setRootViewContainerRef(vRef);
38
- http.get("version", /* workaround to avoid OPTIONS method request*/ new BaseRequestOptions())
39
- .map((res) => <string>res.json().version)
40
- .subscribe(
41
- version => this.securisVersion = version,
42
- err => this.securisVersion = '0.0.0'
43
- );
44
-
4537 }
4638
4739 private registerIcons() : void {
....@@ -61,11 +53,7 @@
6153 }
6254
6355 ngOnInit(): void {
64
- this.userService.isLoggedIn().subscribe(authOk => {
65
- this.isLoggedIn = true//authOk.valueOf();
66
- this.router.navigateByUrl(this.isLoggedIn ? 'packs' : 'login');
67
- } ,
68
- err => /* Show message */ this.router.navigateByUrl('login'));
56
+ this.router.navigateByUrl('nomenu/login');
6957 }
7058
7159 ngAfterViewInit(): void {