resolve todos in website
This commit is contained in:
@@ -70,4 +70,10 @@ export class RaceDetailViewModel {
|
||||
if (this.canRegister) return 'You can register for this race';
|
||||
return 'Registration not available';
|
||||
}
|
||||
|
||||
/** UI-specific: Whether race can be re-opened */
|
||||
get canReopenRace(): boolean {
|
||||
if (!this.race) return false;
|
||||
return this.race.status === 'completed' || this.race.status === 'cancelled';
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user