From ca7e29c58eada0e1cce3c98e71c35e507ad0408f Mon Sep 17 00:00:00 2001 From: Sthefani Date: Fri, 29 Sep 2023 11:34:21 -0300 Subject: [PATCH] feat: change component name and api route --- src/api/appType/whatsapp_cloud/index.js | 5 ++--- src/components/whatsAppCatalogs/Card.vue | 12 ++++++------ .../whatsAppCatalogs/{Table.vue => List.vue} | 14 +++++++------- src/router.js | 4 ++-- .../channels/whatsapp_cloud/actions.js | 4 ++-- src/views/whatsAppCatalogs/Base.vue | 2 +- src/views/whatsAppCatalogs/List.vue | 19 +++++++++++++++++++ src/views/whatsAppCatalogs/Table.vue | 19 ------------------- 8 files changed, 39 insertions(+), 40 deletions(-) rename src/components/whatsAppCatalogs/{Table.vue => List.vue} (79%) create mode 100644 src/views/whatsAppCatalogs/List.vue delete mode 100644 src/views/whatsAppCatalogs/Table.vue diff --git a/src/api/appType/whatsapp_cloud/index.js b/src/api/appType/whatsapp_cloud/index.js index 407b9ae4..790f484e 100644 --- a/src/api/appType/whatsapp_cloud/index.js +++ b/src/api/appType/whatsapp_cloud/index.js @@ -16,9 +16,8 @@ export default { configurePhoneNumber(data) { return request.$http.post(`${resource}/`, data); }, - getWhatsAppCloudCatalogs(appUuid, params) { - const queryString = qs.stringify(params); - return request.$http.get(`${catalogsResource}/${appUuid}/catalogs/?${queryString}`); + getWhatsAppCloudCatalogs(appUuid) { + return request.$http.get(`${catalogsResource}/${appUuid}/catalogs/`); }, fetchCatalogData(appUuid, catalogUuid) { return request.$http.get(`${catalogsResource}/${appUuid}/catalogs/${catalogUuid}/`); diff --git a/src/components/whatsAppCatalogs/Card.vue b/src/components/whatsAppCatalogs/Card.vue index fe962f79..5b632a36 100644 --- a/src/components/whatsAppCatalogs/Card.vue +++ b/src/components/whatsAppCatalogs/Card.vue @@ -67,8 +67,8 @@