From 571c104659ca50e1f7cf9efb26ed60217a463f05 Mon Sep 17 00:00:00 2001 From: Steven Nguyen Date: Fri, 9 Feb 2024 18:20:03 -0800 Subject: [PATCH] Show max length for sms and push messages Providing a limit will help clarify for the user so that they won't send a message which will then fail because of the limit. Since the limit varies by provider, the Console is going to use the smallest limit out of all the providers. --- .../project-[project]/messaging/wizard/pushFormList.svelte | 1 + .../project-[project]/messaging/wizard/smsFormList.svelte | 1 + 2 files changed, 2 insertions(+) diff --git a/src/routes/console/project-[project]/messaging/wizard/pushFormList.svelte b/src/routes/console/project-[project]/messaging/wizard/pushFormList.svelte index b15e65d15..215f1eeb8 100644 --- a/src/routes/console/project-[project]/messaging/wizard/pushFormList.svelte +++ b/src/routes/console/project-[project]/messaging/wizard/pushFormList.svelte @@ -99,6 +99,7 @@ id="message" label="Message" placeholder="Type here..." + maxlength={1000} bind:value={$messageParams[MessagingProviderType.Push]['body']}> diff --git a/src/routes/console/project-[project]/messaging/wizard/smsFormList.svelte b/src/routes/console/project-[project]/messaging/wizard/smsFormList.svelte index ef03b9aa7..4eaf07ea6 100644 --- a/src/routes/console/project-[project]/messaging/wizard/smsFormList.svelte +++ b/src/routes/console/project-[project]/messaging/wizard/smsFormList.svelte @@ -39,6 +39,7 @@ id="message" label="Message" placeholder="Type here..." + maxlength={900} bind:value={$messageParams[$providerType]['content']}>