From 3227d299e958e83fe106fdb45efb56699fa24674 Mon Sep 17 00:00:00 2001 From: Javier Segarra Date: Wed, 5 Jun 2024 10:57:12 +0200 Subject: [PATCH] updates --- src/components/FetchData.vue | 6 +- src/components/UserPanel.vue | 1 + src/pages/Account/Card/AccountDescriptor.vue | 53 +++++++++-- .../Account/Card/AccountDescriptorMenu.vue | 92 ++++++++++++++++--- src/pages/Account/locale/en.yml | 18 +++- src/pages/Account/locale/es.yml | 17 +++- src/pages/InvoiceIn/Card/InvoiceInCard.vue | 7 ++ .../InvoiceIn/Card/InvoiceInIntrastat.vue | 8 +- src/pages/InvoiceIn/Card/InvoiceInSummary.vue | 6 ++ 9 files changed, 173 insertions(+), 35 deletions(-) diff --git a/src/components/FetchData.vue b/src/components/FetchData.vue index 2a0864d3e..8134b15ac 100644 --- a/src/components/FetchData.vue +++ b/src/components/FetchData.vue @@ -7,6 +7,10 @@ const $props = defineProps({ type: Boolean, default: false, }, + dataKey: { + type: Boolean, + default: false, + }, url: { type: String, default: '', @@ -49,7 +53,7 @@ async function fetch(fetchFilter = {}) { if ($props.sortBy) filter.order = $props.sortBy; if ($props.limit) filter.limit = $props.limit; - const { data } = await axios.get($props.url, { + const { data } = await axios($props.url, { params: { filter: JSON.stringify(filter), ...$props.params }, }); diff --git a/src/components/UserPanel.vue b/src/components/UserPanel.vue index 3ae05a268..6489f54f8 100644 --- a/src/components/UserPanel.vue +++ b/src/components/UserPanel.vue @@ -96,6 +96,7 @@ function copyUserToken() {