From 35fcd56ba9d7e9a2fa954958fdafbda703e297cd Mon Sep 17 00:00:00 2001 From: Muhsin Keloth Date: Thu, 9 Jul 2026 16:45:47 +0400 Subject: [PATCH] feat: add support action to suspended account page (#14969) Updates the suspended account page with the revised policy copy and adds a visible Contact support action that opens the embedded Chatwoot support widget. Co-authored-by: Muhsin <12408980+muhsin-k@users.noreply.github.com> --- .../sidebar/SidebarProfileMenu.vue | 10 +++++++--- .../dashboard/i18n/locale/en/settings.json | 2 +- .../routes/dashboard/suspended/Index.vue | 17 ++++++++++++++++- 3 files changed, 24 insertions(+), 5 deletions(-) diff --git a/app/javascript/dashboard/components-next/sidebar/SidebarProfileMenu.vue b/app/javascript/dashboard/components-next/sidebar/SidebarProfileMenu.vue index 29023b9e9..3f76b3aea 100644 --- a/app/javascript/dashboard/components-next/sidebar/SidebarProfileMenu.vue +++ b/app/javascript/dashboard/components-next/sidebar/SidebarProfileMenu.vue @@ -44,6 +44,12 @@ const showChatSupport = computed(() => { ); }); +const toggleChatSupport = () => { + if (window.$chatwoot) { + window.$chatwoot.toggle(); + } +}; + const menuItems = computed(() => { return [ { @@ -51,9 +57,7 @@ const menuItems = computed(() => { showOnCustomBrandedInstance: false, label: t('SIDEBAR_ITEMS.CONTACT_SUPPORT'), icon: 'i-lucide-life-buoy', - click: () => { - window.$chatwoot.toggle(); - }, + click: toggleChatSupport, }, { show: true, diff --git a/app/javascript/dashboard/i18n/locale/en/settings.json b/app/javascript/dashboard/i18n/locale/en/settings.json index f8e973e9a..b621e63b1 100644 --- a/app/javascript/dashboard/i18n/locale/en/settings.json +++ b/app/javascript/dashboard/i18n/locale/en/settings.json @@ -263,7 +263,7 @@ "EMAIL_VERIFICATION_SENT": "Verification email has been sent. Please check your inbox.", "ACCOUNT_SUSPENDED": { "TITLE": "Account Suspended", - "MESSAGE": "Your account has been suspended after we detected activity that may violate our policies or put other users at risk. If you believe this is a mistake, please contact our support team." + "MESSAGE": "Your account has been suspended due to activity that may violate our policies. If you believe this is a mistake, please contact our support team." }, "NO_ACCOUNTS": { "TITLE": "No account found", diff --git a/app/javascript/dashboard/routes/dashboard/suspended/Index.vue b/app/javascript/dashboard/routes/dashboard/suspended/Index.vue index 56a5b5cae..027f75ff5 100644 --- a/app/javascript/dashboard/routes/dashboard/suspended/Index.vue +++ b/app/javascript/dashboard/routes/dashboard/suspended/Index.vue @@ -1,5 +1,6 @@