view data fixes

This commit is contained in:
2026-01-23 15:30:23 +01:00
parent e22033be38
commit f8099f04bc
213 changed files with 3466 additions and 3003 deletions

View File

@@ -4,16 +4,18 @@
* Represents the result of updating a team in a UI-ready format.
*/
import { ViewModel } from "../contracts/view-models/ViewModel";
import type { UpdateTeamViewData } from "../view-data/UpdateTeamViewData";
export class UpdateTeamViewModel extends ViewModel {
success: boolean;
constructor(dto: { success: boolean }) {
this.success = dto.success;
constructor(data: UpdateTeamViewData) {
super();
this.success = data.success;
}
/** UI-specific: Success message */
get successMessage(): string {
return this.success ? 'Team updated successfully!' : 'Failed to update team.';
}
}
}