| .. | .. |
|---|
| 28 | 28 | toaster: ToastsManager, |
|---|
| 29 | 29 | vRef: ViewContainerRef, |
|---|
| 30 | 30 | private router: Router, |
|---|
| 31 | | - http: Http, |
|---|
| 32 | 31 | private media: TdMediaService, |
|---|
| 33 | 32 | private _iconRegistry: MdIconRegistry, |
|---|
| 34 | 33 | private _domSanitizer: DomSanitizer, |
|---|
| 35 | 34 | private store: LocalStorageService) { |
|---|
| 36 | 35 | this.registerIcons(); |
|---|
| 37 | 36 | 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 | | - |
|---|
| 45 | 37 | } |
|---|
| 46 | 38 | |
|---|
| 47 | 39 | private registerIcons() : void { |
|---|
| .. | .. |
|---|
| 61 | 53 | } |
|---|
| 62 | 54 | |
|---|
| 63 | 55 | 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'); |
|---|
| 69 | 57 | } |
|---|
| 70 | 58 | |
|---|
| 71 | 59 | ngAfterViewInit(): void { |
|---|