From aadb2d94c3dbb2d6df5b416453b05ca0c77bdbb7 Mon Sep 17 00:00:00 2001 From: Murali raju <17339891+muralishub@users.noreply.github.com> Date: Mon, 2 Dec 2024 09:10:00 +0000 Subject: [PATCH] DC-6943: fix welsh translation for reply message limit --- app/views/partials/messageReply.scala.html | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/app/views/partials/messageReply.scala.html b/app/views/partials/messageReply.scala.html index 1ad4e84..ab706f3 100644 --- a/app/views/partials/messageReply.scala.html +++ b/app/views/partials/messageReply.scala.html @@ -14,14 +14,15 @@ * limitations under the License. *@ -@import uk.gov.hmrc.govukfrontend.views.viewmodels.charactercount.CharacterCount +@import uk.gov.hmrc.hmrcfrontend.views.Aliases.CharacterCount @import views.viewmodels.MessageReply @import forms.MessageFormProvider.CONTENT_MAX_LENGTH @this( formWithCSRF: FormWithCSRF, govukCharacterCount: GovukCharacterCount, - govukButton: GovukButton + govukButton: GovukButton, + hmrcCharacterCount: HmrcCharacterCount ) @(reply: MessageReply)(implicit messages: Messages, requestHeader: RequestHeader, request: Request[_]) @@ -39,7 +40,7 @@ @formWithCSRF(Call(method = "POST", url = replyFormUrl)) { - @govukCharacterCount(CharacterCount( + @hmrcCharacterCount(CharacterCount( id = "reply-form", name = "content", maxLength = Some(CONTENT_MAX_LENGTH), @@ -51,13 +52,11 @@ ), errorMessage = formErrors.headOption.map(error => ErrorMessage(content = Text(messages(error.message, error.args:_*)))), value = Some(content), - classes = "", attributes = Map("spellcheck" -> "true") )) @govukButton(Button( - content = Text(messages("conversation.reply.form.send.button")) - )) + content = Text(messages("conversation.reply.form.send.button")))) } } else {