From e9831b8855ea36c569d9c5fa3911625cf102406b Mon Sep 17 00:00:00 2001 From: Shivam Mishra Date: Mon, 20 May 2024 11:57:03 +0530 Subject: [PATCH] feat: add inbox reconnection banner (#9441) ![CleanShot 2024-05-09 at 12 44 07@2x](https://github.com/chatwoot/chatwoot/assets/18097732/2b2861d4-ddcb-481a-b411-f553c19ff573) ![CleanShot 2024-05-09 at 12 44 36@2x](https://github.com/chatwoot/chatwoot/assets/18097732/9cdb8213-acce-4499-a72b-1feba2b611a6) --------- Co-authored-by: Fayaz Ahmed --- .../dashboard/i18n/locale/en/inboxMgmt.json | 3 ++- .../dashboard/settings/inbox/Settings.vue | 18 ++++++++++++++---- .../components/InboxReconnectionRequired.vue | 19 +++++++++++++++++++ 3 files changed, 35 insertions(+), 5 deletions(-) create mode 100644 app/javascript/dashboard/routes/dashboard/settings/inbox/components/InboxReconnectionRequired.vue diff --git a/app/javascript/dashboard/i18n/locale/en/inboxMgmt.json b/app/javascript/dashboard/i18n/locale/en/inboxMgmt.json index a168e82f0..f887ecb87 100644 --- a/app/javascript/dashboard/i18n/locale/en/inboxMgmt.json +++ b/app/javascript/dashboard/i18n/locale/en/inboxMgmt.json @@ -2,6 +2,7 @@ "INBOX_MGMT": { "HEADER": "Inboxes", "SIDEBAR_TXT": "

Inbox

When you connect a website or a facebook Page to Chatwoot, it is called an Inbox. You can have unlimited inboxes in your Chatwoot account.

Click on Add Inbox to connect a website or a Facebook Page.

In the Dashboard, you can see all the conversations from all your inboxes in a single place and respond to them under the `Conversations` tab.

You can also see conversations specific to an inbox by clicking on the inbox name on the left pane of the dashboard.

", + "RECONNECTION_REQUIRED": "Your inbox is disconnected, you will not receive any new messages. Click here to reconnect.", "LIST": { "404": "There are no inboxes attached to this account." }, @@ -736,4 +737,4 @@ "OTHER_PROVIDERS": "Other Providers" } } -} +} \ No newline at end of file diff --git a/app/javascript/dashboard/routes/dashboard/settings/inbox/Settings.vue b/app/javascript/dashboard/routes/dashboard/settings/inbox/Settings.vue index 8823e593f..eb9108232 100644 --- a/app/javascript/dashboard/routes/dashboard/settings/inbox/Settings.vue +++ b/app/javascript/dashboard/routes/dashboard/settings/inbox/Settings.vue @@ -21,6 +21,11 @@ + +
{{ $t('INBOX_MGMT.FEATURES.LABEL') }} -
+
-
+
-
+
-
+
+defineProps({ + actionUrl: { + type: String, + required: true, + }, +}); + + +