FlightsTable component props <=> parameter

This commit is contained in:
Peter Hoppe
2022-12-06 11:40:35 +01:00
parent 5357f51bf2
commit 03d11bc278
6 changed files with 31 additions and 57 deletions

View File

@ -11,6 +11,7 @@ export class CFlight implements IKey
public readonly BestTaskType: string;
public readonly BestTaskPoints: string;
public readonly FlightDuration: CHour;
public readonly FlightDurationDispl: string; // need for sorting
public readonly FKSeason: string;
constructor(inData: any)
@ -24,6 +25,7 @@ export class CFlight implements IKey
this.BestTaskPoints = inData.BestTaskPoints;
this.FKSeason = inData.FKSeason;
this.FlightDuration = new CHour(+inData.FlightDuration);
this.FlightDurationDispl = this.FlightDuration.Print();
}
public get key()