From 0238719a5a52c1af807fc40e748d8cfbfb3a051d Mon Sep 17 00:00:00 2001 From: samgibsonmoj Date: Tue, 3 Dec 2024 12:17:40 +0000 Subject: [PATCH] Add 1000 character limit to PQA submission justification --- .../Components/Dialogs/ConfirmationWithNotesDialog.razor | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/src/Server.UI/Components/Dialogs/ConfirmationWithNotesDialog.razor b/src/Server.UI/Components/Dialogs/ConfirmationWithNotesDialog.razor index 4e3eb5e1..43e07bc5 100644 --- a/src/Server.UI/Components/Dialogs/ConfirmationWithNotesDialog.razor +++ b/src/Server.UI/Components/Dialogs/ConfirmationWithNotesDialog.razor @@ -10,8 +10,9 @@ For="@(() => Model.Note)" Lines="5" Class="mt-4" - /> - + Immediate + MaxLength="ValidationConstants.NotesLength" /> + Characters: @(Model.Note?.Length ?? 0) / @ValidationConstants.NotesLength @@ -75,7 +76,7 @@ } RuleFor(x => x.Note) - .MaximumLength(250) + .MaximumLength(ValidationConstants.NotesLength) .Matches(ValidationConstants.Notes) .WithMessage(string.Format(ValidationConstants.NotesMessage, "Note")); } @@ -89,4 +90,5 @@ }; } + } \ No newline at end of file