mirror of
https://github.com/lingble/chatwoot.git
synced 2025-11-01 19:48:08 +00:00
This PR adds missing error handlers for the following channels and cases 1. WhatsApp - Generic Handlers for both Cloud and 360Dialog (Deprecated) 2. Instagram - Handler for a case where there is an HTTP error instead of an `:error` in the 200 response 3. Facebook - Errors from the two sentry issues ([Net::OpenTimeout](https://chatwoot-p3.sentry.io/issues/6164805227) & [JSON::ParserError](https://chatwoot-p3.sentry.io/issues/5903200786)) 4. SMS: Generic handlers for Bandwidth SMS #### Checklist - [x] Bandwidth SMS - [x] Whatsapp Cloud + 360 Dialog - [x] Twilio SMS - [x] Line - [x] Telegram - [x] Instagram - [x] Facebook - [x] GMail - [x] 365 Mail - [x] SMTP Mail --------- Co-authored-by: Muhsin Keloth <muhsinkeramam@gmail.com>
40 lines
1.2 KiB
Vue
40 lines
1.2 KiB
Vue
<script setup>
|
|
import Icon from 'next/icon/Icon.vue';
|
|
import { useI18n } from 'vue-i18n';
|
|
import { useMessageContext } from './provider.js';
|
|
import { ORIENTATION } from './constants';
|
|
|
|
defineProps({
|
|
error: { type: String, required: true },
|
|
});
|
|
|
|
const { orientation } = useMessageContext();
|
|
|
|
const { t } = useI18n();
|
|
</script>
|
|
|
|
<template>
|
|
<div class="text-xs text-n-ruby-11 flex items-center gap-1.5">
|
|
<span>{{ t('CHAT_LIST.FAILED_TO_SEND') }}</span>
|
|
<div class="relative group">
|
|
<div
|
|
class="bg-n-alpha-2 rounded-md size-5 grid place-content-center cursor-pointer"
|
|
>
|
|
<Icon
|
|
icon="i-lucide-alert-triangle"
|
|
class="text-n-ruby-11 size-[14px]"
|
|
/>
|
|
</div>
|
|
<div
|
|
class="absolute bg-n-alpha-3 px-4 py-3 border rounded-xl border-n-strong text-n-slate-12 bottom-6 w-52 text-xs backdrop-blur-[100px] shadow-[0px_0px_24px_0px_rgba(0,0,0,0.12)] opacity-0 invisible group-hover:opacity-100 group-hover:visible transition-all break-all"
|
|
:class="{
|
|
'ltr:left-0 rtl:right-0': orientation === ORIENTATION.LEFT,
|
|
'ltr:right-0 rtl:left-0': orientation === ORIENTATION.RIGHT,
|
|
}"
|
|
>
|
|
{{ error }}
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</template>
|