From ebb69156aa8a7cb6312526cc44a50ac12e68d104 Mon Sep 17 00:00:00 2001 From: Beautiful Mim <156966699+beautifulmim@users.noreply.github.com> Date: Thu, 3 Oct 2024 10:27:39 -0400 Subject: [PATCH] Added character counter for application text (#784) --- .../partials/dialog_apply_corporation.astro | 36 +++++++++++++++++-- 1 file changed, 33 insertions(+), 3 deletions(-) diff --git a/frontend/app/src/pages/partials/dialog_apply_corporation.astro b/frontend/app/src/pages/partials/dialog_apply_corporation.astro index 84315be4..f44c6a19 100644 --- a/frontend/app/src/pages/partials/dialog_apply_corporation.astro +++ b/frontend/app/src/pages/partials/dialog_apply_corporation.astro @@ -32,14 +32,18 @@ import CorporationItem from '@components/blocks/CorporationItem.astro'; import Textarea from '@components/blocks/Textarea.astro'; import FlexInline from '@components/compositions/FlexInline.astro'; import Markdown from '@components/icons/buttons/Markdown.astro'; + +const MAX_APPLICATION_TEXT_LENGTH = 2000 --- ${MAX_APPLICATION_TEXT_LENGTH} + confirm_dialog_set_accept_disable(this.error) } }`} x-init="update_status" @@ -49,7 +53,17 @@ import Markdown from '@components/icons/buttons/Markdown.astro'; -