view models
This commit is contained in:
@@ -5,7 +5,7 @@ import { CreateLeagueOutputDTO } from '../types/generated/CreateLeagueOutputDTO'
|
||||
*
|
||||
* Represents the result of creating a league in a UI-ready format.
|
||||
*/
|
||||
export class CreateLeagueViewModel implements CreateLeagueOutputDTO {
|
||||
export class CreateLeagueViewModel {
|
||||
leagueId: string;
|
||||
success: boolean;
|
||||
|
||||
@@ -18,4 +18,5 @@ export class CreateLeagueViewModel implements CreateLeagueOutputDTO {
|
||||
get successMessage(): string {
|
||||
return this.success ? 'League created successfully!' : 'Failed to create league.';
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user