view data fixes
This commit is contained in:
@@ -2,28 +2,31 @@ import { ViewModel } from "../contracts/view-models/ViewModel";
|
||||
import type { ImportRaceResultsSummaryViewData } from "../view-data/ImportRaceResultsSummaryViewData";
|
||||
|
||||
export class ImportRaceResultsSummaryViewModel extends ViewModel {
|
||||
constructor(private readonly viewData: ImportRaceResultsSummaryViewData) {
|
||||
private readonly data: ImportRaceResultsSummaryViewData;
|
||||
|
||||
constructor(data: ImportRaceResultsSummaryViewData) {
|
||||
super();
|
||||
this.data = data;
|
||||
}
|
||||
|
||||
get success(): boolean {
|
||||
return this.viewData.success;
|
||||
return this.data.success;
|
||||
}
|
||||
|
||||
get raceId(): string {
|
||||
return this.viewData.raceId;
|
||||
return this.data.raceId;
|
||||
}
|
||||
|
||||
get driversProcessed(): number {
|
||||
return this.viewData.driversProcessed;
|
||||
return this.data.driversProcessed;
|
||||
}
|
||||
|
||||
get resultsRecorded(): number {
|
||||
return this.viewData.resultsRecorded;
|
||||
return this.data.resultsRecorded;
|
||||
}
|
||||
|
||||
get errors(): string[] {
|
||||
return this.viewData.errors;
|
||||
return this.data.errors;
|
||||
}
|
||||
|
||||
get hasErrors(): boolean {
|
||||
|
||||
Reference in New Issue
Block a user