Skip to content

Commit

Permalink
Enforce string limits, closes #56
Browse files Browse the repository at this point in the history
  • Loading branch information
codemonkey85 committed Nov 19, 2024
1 parent 4743eec commit 6134d97
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions Pkmds.Web/Components/EditForms/Tabs/MainTab.razor
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,7 @@ AppState.SelectedSlotsAreValid)
<MudTextField Label="Nickname"
Variant="@Variant.Outlined"
@bind-Value="@Pokemon.Nickname"
MaxLength="@saveFile.MaxStringLengthNickname"
For="@(() => Pokemon.Nickname)" />

@if (saveGeneration >= 2)
Expand Down
1 change: 1 addition & 0 deletions Pkmds.Web/Components/EditForms/Tabs/OtMiscTab.razor
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,7 @@ AppState.SelectedSlotsAreValid)
<MudTextField Label="OT"
Variant="@Variant.Outlined"
@bind-Value="@Pokemon.OriginalTrainerName"
MaxLength="@saveFile.MaxStringLengthTrainer"
For="@(() => Pokemon.OriginalTrainerName)" />
</MudItem>

Expand Down
1 change: 1 addition & 0 deletions Pkmds.Web/Components/MainTabPages/TrainerInfoTab.razor
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ EntityContext.MaxInvalid)
{
<MudTextField Label="Name"
Variant="@Variant.Outlined"
MaxLength="@saveFile.MaxStringLengthTrainer"
@bind-Value="@saveFile.OT"
For="@(() => saveFile.OT)" />

Expand Down

0 comments on commit 6134d97

Please sign in to comment.