wip league admin tools
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
import { LeagueWithCapacityDTO } from '../types/generated/LeagueWithCapacityDTO';
|
||||
import { LeagueWithCapacityAndScoringDTO } from '../types/generated/LeagueWithCapacityAndScoringDTO';
|
||||
import { LeagueStatsDTO } from '../types/generated/LeagueStatsDTO';
|
||||
import { LeagueMembershipsDTO } from '../types/generated/LeagueMembershipsDTO';
|
||||
import { LeagueScheduleDTO } from '../types/generated/LeagueScheduleDTO';
|
||||
@@ -93,7 +93,7 @@ export class LeagueDetailPageViewModel {
|
||||
stewardSummaries: DriverSummary[];
|
||||
|
||||
constructor(
|
||||
league: LeagueWithCapacityDTO,
|
||||
league: LeagueWithCapacityAndScoringDTO,
|
||||
owner: GetDriverOutputDTO | null,
|
||||
scoringConfig: LeagueScoringConfigDTO | null,
|
||||
drivers: GetDriverOutputDTO[],
|
||||
@@ -111,9 +111,9 @@ export class LeagueDetailPageViewModel {
|
||||
maxDrivers: league.settings?.maxDrivers ?? (league as any).maxDrivers,
|
||||
};
|
||||
this.socialLinks = {
|
||||
discordUrl: league.discordUrl ?? (league as any).socialLinks?.discordUrl,
|
||||
youtubeUrl: league.youtubeUrl ?? (league as any).socialLinks?.youtubeUrl,
|
||||
websiteUrl: league.websiteUrl ?? (league as any).socialLinks?.websiteUrl,
|
||||
discordUrl: league.socialLinks?.discordUrl ?? (league as any).socialLinks?.discordUrl,
|
||||
youtubeUrl: league.socialLinks?.youtubeUrl ?? (league as any).socialLinks?.youtubeUrl,
|
||||
websiteUrl: league.socialLinks?.websiteUrl ?? (league as any).socialLinks?.websiteUrl,
|
||||
};
|
||||
|
||||
this.owner = owner;
|
||||
|
||||
Reference in New Issue
Block a user