Skip to content
This repository was archived by the owner on Apr 26, 2022. It is now read-only.

Commit

Permalink
added fake interfaces to keep webstorm green for deprecated router
Browse files Browse the repository at this point in the history
This will be removed again as soon as we migrated to latest router
  • Loading branch information
ThorstenHans committed Jul 1, 2016
1 parent 74ed9e4 commit 960c678
Showing 1 changed file with 16 additions and 6 deletions.
22 changes: 16 additions & 6 deletions src/BoardZ/app/components/games/details.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import {Component, OnInit} from '@angular/core';
import {Router, RouteSegment, RouteTree} from '@angular/router-deprecated';
import {Router} from '@angular/router-deprecated';
import {NeedsAuthentication} from '../../decorators/needsAuthentication';
import {LocateItComponent} from '../locateIt/locateIt';
import {PictureItComponent} from '../pictureIt/pictureIt';
Expand All @@ -15,23 +15,29 @@ import {LoginService} from '../../services/loginService';
import {Notification} from '../../models/notification';
import {NotificationType} from '../../models/notificationType';

// fix WebStorm errors for deprecated router
export interface RouteSegment {
params: Array<any>;
}

export interface RouteTree {
}

@Component({
moduleId: module.id,
selector: 'gameDetail',
directives: [LocateItComponent, PictureItComponent],
templateUrl: 'details.html'
})
@NeedsAuthentication()
export class GameDetailsComponent implements OnInit{
ngOnInit(): any {
return undefined;
}
export class GameDetailsComponent implements OnInit {

private _needsReset: boolean;
private _pictureUrl: string = "";
private _coordinates: GeoLocation = null;
private _sending: boolean;
public active = true;

public active = true;
public model: Game = new Game();
public originalModel: Game = new Game();

Expand All @@ -44,6 +50,10 @@ export class GameDetailsComponent implements OnInit{
private _loginService: LoginService) {
}

public ngOnInit(): any {
return undefined;
}

public routerOnActivate(curr: RouteSegment, prev?: RouteSegment, currTree?: RouteTree, prevTree?: RouteTree): void {
let id = curr.params['id'];

Expand Down

0 comments on commit 960c678

Please sign in to comment.