From 67f252cdb27e62552e94588d581d04633e6c0351 Mon Sep 17 00:00:00 2001 From: Sthefani Date: Wed, 27 Sep 2023 19:57:56 -0300 Subject: [PATCH] feat: authentication category form --- .../AuthenticationCategoryForm.vue | 215 ++++++++++++++++++ .../whatsAppTemplates/FormTabContent.vue | 71 ++++-- src/locales/en.json | 31 +++ src/locales/es_es.json | 31 +++ src/locales/pt_br.json | 31 +++ .../whatsAppTemplates/FormTabContent.spec.js | 6 +- 6 files changed, 358 insertions(+), 27 deletions(-) create mode 100644 src/components/whatsAppTemplates/AuthenticationCategoryForm.vue diff --git a/src/components/whatsAppTemplates/AuthenticationCategoryForm.vue b/src/components/whatsAppTemplates/AuthenticationCategoryForm.vue new file mode 100644 index 00000000..222a1083 --- /dev/null +++ b/src/components/whatsAppTemplates/AuthenticationCategoryForm.vue @@ -0,0 +1,215 @@ + + + + + diff --git a/src/components/whatsAppTemplates/FormTabContent.vue b/src/components/whatsAppTemplates/FormTabContent.vue index a5ad3f1c..490ed5c7 100644 --- a/src/components/whatsAppTemplates/FormTabContent.vue +++ b/src/components/whatsAppTemplates/FormTabContent.vue @@ -22,7 +22,9 @@ 'form-tab-content__selects--category': true, 'form-tab-content__selects__disabled': disableInputs || formMode !== 'create', }" - :inputTitle="currentCategory || $t('WhatsApp.templates.form_field.category_placeholder')" + :inputTitle=" + translateCurrentCategory || $t('WhatsApp.templates.form_field.category_placeholder') + " :hideGroupTitle="true" :label="$t('WhatsApp.templates.form_field.category')" :groups="categoryGroups" @@ -51,28 +53,35 @@ - - -