Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adição das opções merge_brazil_contacts e name_inbox nas configurações de integração com chatwoot #14

Closed
wants to merge 4 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions src/components/instance/profile/Privacy.vue
Original file line number Diff line number Diff line change
Expand Up @@ -126,6 +126,7 @@ const defaultObj = () => ({
token: "",
sign_msg: true,
reopen_conversation: true,
merge_brazil_contacts: true,
conversation_pending: false,
import_contacts: false,
import_messages: false,
Expand Down
32 changes: 32 additions & 0 deletions src/components/instance/settings/Chatwoot.vue
Original file line number Diff line number Diff line change
Expand Up @@ -129,6 +129,15 @@
placeholder="\n"
style="min-width: 200px"
></v-text-field>
<v-text-field
v-model.number="chatwootData.name_inbox"
:label="$t('chatwoot.nameInbox')"
:disabled="loading"
outlined
dense
hide-details="auto"
class="mb-3"
/>
</div>

<div class="d-flex gap-x-4 flex-wrap">
Expand All @@ -148,6 +157,23 @@
</template>
</v-checkbox>
</div>

<div>
<v-checkbox
v-model="chatwootData.merge_brazil_contacts"
:disabled="loading"
hide-details
class="mb-3"
density="compact"
>
<template v-slot:label>
<span>{{ $t("chatwoot.mergeBrazilContacts") }}</span>
<HelpTooltip>
{{ $t("chatwoot.mergeBrazilContactsHelp") }}
</HelpTooltip>
</template>
</v-checkbox>
</div>

<div>
<v-checkbox
Expand Down Expand Up @@ -274,7 +300,9 @@ const defaultObj = () => ({
token: "",
sign_msg: true,
sign_delimiter: "\n",
name_inbox: "",
reopen_conversation: true,
merge_brazil_contacts: true,
conversation_pending: false,
auto_create: undefined,
import_contacts: false,
Expand Down Expand Up @@ -303,7 +331,9 @@ export default {
token: "",
sign_msg: true,
sign_delimiter: "\n",
name_inbox: "",
reopen_conversation: true,
merge_brazil_contacts: true,
conversation_pending: false,
import_contacts: false,
import_messages: false,
Expand All @@ -316,7 +346,9 @@ export default {
token: "",
sign_msg: true,
sign_delimiter: "\n",
name_inbox: "",
reopen_conversation: true,
merge_brazil_contacts: true,
conversation_pending: false,
import_contacts: false,
import_messages: false,
Expand Down
5 changes: 4 additions & 1 deletion src/i18n/en.js
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ export default {
title: "Phone not connected",
apiGenericError: "Could not load QR Code, if the error persists, restart the API and try again.",
qr: "QR Code",
code: "C�digo",
code: "C�digo",
},
options: {
title: "Behavior",
Expand All @@ -101,8 +101,11 @@ export default {
signMsgHelp: "Adds the agent name at the first line of the message",
signDelimiter: "Signature delimiter",
signDelimiterHelp: "Delimiter used to separate the signature from the message (\\n for line break)",
nameInbox: "Nombre de la bandeja de entrada de Chatwoot",
reopenConversation: "Reopen conversation",
reopenConversationHelp: "Reopens the customer's conversation when he starts a new conversation instead of creating a new conversation",
mergeBrazilContacts: "Merge contacts from Brazil",
mergeBrazilContactsHelp: "Unifies phone contacts with the same number without or with the 9",
conversationPending: "Start conversation as pending",
conversationPendingHelp: "Starts the conversation as pending instead of open",
autoCreate: "Create Inbox",
Expand Down
3 changes: 3 additions & 0 deletions src/i18n/es.js
Original file line number Diff line number Diff line change
Expand Up @@ -101,8 +101,11 @@ export default {
signMsgHelp: "Agrega el nombre del agente en la primera línea del mensaje.",
signDelimiter: "Delimitador de firma",
signDelimiterHelp: "Delimitador utilizado para separar la firma del mensaje (\\n para salto de línea)",
nameInbox: "Chatwoot Inbox Name",
reopenConversation: "Reabrir conversación",
reopenConversationHelp: "Vuelve a abrir la conversación del cliente cuando inicia una nueva conversación en lugar de crear una nueva conversación.",
mergeBrazilContacts: "Fusionar contactos de Brasil",
mergeBrazilContactsHelp: "Unifica contactos telefónicos con el mismo número sin o con el 9",
conversationPending: "Iniciar conversación en estado pendiente",
conversationPendingHelp: "Inicia la conversación como pendiente en lugar de abierta",
autoCreate: "Crear bandeja de entrada",
Expand Down
3 changes: 3 additions & 0 deletions src/i18n/pt.js
Original file line number Diff line number Diff line change
Expand Up @@ -108,9 +108,12 @@ export default {
signDelimiter: "Separador da assinatura da mensagem",
signDelimiterHelp:
"Delimitador utilizado para separar a assinatura da mensagem (\\n para quebra de linha)",
nameInbox: "Nome da Caixa no Chatwoot",
reopenConversation: "Reabrir conversa",
reopenConversationHelp:
"Reabre a conversa do cliente quando ele inicia uma nova conversa em vez de criar uma nova conversa",
mergeBrazilContacts: "Mesclar contatos Do Brasil",
mergeBrazilContactsHelp: "Unifica os contatos de telefones do mesmo numero que que esteja sem ou com o 9",
conversationPending: "Iniciar conversa como pendente",
conversationPendingHelp:
"Inicia a conversa como pendente ao invés de aberta",
Expand Down