From 986cde353520162c1752956045c654d46c78a5c5 Mon Sep 17 00:00:00 2001
From: Renato Becker
Date: Fri, 18 May 2018 19:50:49 -0300
Subject: [PATCH] [NEW] Enable/disable Livechat registration form fields
(#10584)
[NEW] Options to enable/disable each Livechat registration form field
---
packages/rocketchat-i18n/i18n/en.i18n.json | 5 +-
packages/rocketchat-i18n/i18n/pt.i18n.json | 5 +-
.../.app/client/lib/_livechat.js | 14 +++++
.../.app/client/lib/commands.js | 2 +-
.../.app/client/views/livechatWindow.js | 10 +++-
.../.app/client/views/register.html | 9 ++-
.../.app/client/views/register.js | 43 +++++++++++---
.../client/views/app/livechatAppearance.html | 35 +++++++++++
.../client/views/app/livechatAppearance.js | 59 +++++++++++++++++--
packages/rocketchat-livechat/config.js | 22 ++++++-
.../server/lib/Livechat.js | 5 +-
.../server/methods/getInitialData.js | 6 +-
.../server/methods/saveAppearance.js | 5 +-
.../server/publications/livechatAppearance.js | 5 +-
14 files changed, 199 insertions(+), 26 deletions(-)
diff --git a/packages/rocketchat-i18n/i18n/en.i18n.json b/packages/rocketchat-i18n/i18n/en.i18n.json
index 34bbacfe2a7..7dde0ef4736 100644
--- a/packages/rocketchat-i18n/i18n/en.i18n.json
+++ b/packages/rocketchat-i18n/i18n/en.i18n.json
@@ -1272,6 +1272,7 @@
"Livechat_online": "Livechat online",
"Livechat_open_inquiery_show_connecting": "Show Connecting Message Instead of Input When Guest is Not Yet Connected to an Agent",
"Livechat_Queue": "Livechat Queue",
+ "Livechat_registration_form": "Registration Form",
"Livechat_room_count": "Livechat Room Count",
"Livechat_Routing_Method": "Livechat Routing Method",
"Livechat_Take_Confirm": "Do you want to take this client?",
@@ -1893,13 +1894,15 @@
"Show_all": "Show All",
"Show_Avatars": "Show Avatars",
"Show_counter": "Show counter",
- "Show_room_counter_on_sidebar": "Show room counter on sidebar",
+ "Show_email_field": "Show email field",
"Show_more": "Show more",
+ "Show_name_field": "Show name field",
"show_offline_users": "show offline users",
"Show_on_registration_page": "Show on registration page",
"Show_only_online": "Show Online Only",
"Show_preregistration_form": "Show Pre-registration Form",
"Show_queue_list_to_all_agents": "Show Queue List to All Agents",
+ "Show_room_counter_on_sidebar": "Show room counter on sidebar",
"Show_the_keyboard_shortcut_list": "Show the keyboard shortcut list",
"Showing_archived_results": "
Showing %s archived results
",
"Showing_online_users": "Showing: __total_showing__, Online: __online__, Total: __total__ users",
diff --git a/packages/rocketchat-i18n/i18n/pt.i18n.json b/packages/rocketchat-i18n/i18n/pt.i18n.json
index ac16ff65dc3..28cbe4eb94c 100644
--- a/packages/rocketchat-i18n/i18n/pt.i18n.json
+++ b/packages/rocketchat-i18n/i18n/pt.i18n.json
@@ -1237,6 +1237,7 @@
"Livechat_online": "Livechat on-line",
"Livechat_open_inquiery_show_connecting": "Mostrar conexão de mensagem em vez de entrada quando o visitante ainda não está conectado a um agente",
"Livechat_Queue": "Roleta Livechat",
+ "Livechat_registration_form": "Formulário de pré-registro",
"Livechat_room_count": "Contador de salas de livechat",
"Livechat_Routing_Method": "Método de roteamento Livechat",
"Livechat_Take_Confirm": "Você quer levar esse cliente?",
@@ -1838,13 +1839,15 @@
"Show_all": "Mostrar tudo",
"Show_Avatars": "Mostrar Avatares",
"Show_counter": "Show counter",
- "Show_room_counter_on_sidebar": "Mostrar contador do quarto na barra lateral",
+ "Show_email_field": "Mostrar campo e-mail",
"Show_more": "Mostrar mais",
+ "Show_name_field": "Mostrar campo nome",
"show_offline_users": "mostrar usuários offline",
"Show_on_registration_page": "Mostrar na página de registro",
"Show_only_online": "Mostrar apenas online",
"Show_preregistration_form": "Mostrar formulário de pré-registro",
"Show_queue_list_to_all_agents": "Mostrar link da roleta à todos agentes",
+ "Show_room_counter_on_sidebar": "Mostrar contador do quarto na barra lateral",
"Show_the_keyboard_shortcut_list": "Exibe a lisgta de atalhos do teclado",
"Showing_archived_results": "