From c335accffb30731b089023bced8b94f6e762b215 Mon Sep 17 00:00:00 2001 From: alexm Date: Mon, 25 Mar 2024 12:42:48 +0100 Subject: [PATCH] refs #6905 fix translation and warnings --- src/components/FetchData.vue | 3 +++ src/components/UserPanel.vue | 25 +++++------------------- src/components/common/VnSelectFilter.vue | 6 +++--- src/i18n/en/index.js | 5 +++++ src/i18n/es/index.js | 5 +++++ 5 files changed, 21 insertions(+), 23 deletions(-) diff --git a/src/components/FetchData.vue b/src/components/FetchData.vue index 5b3dcbea7..6d4e79f24 100644 --- a/src/components/FetchData.vue +++ b/src/components/FetchData.vue @@ -60,3 +60,6 @@ async function fetch(fetchFilter = {}) { } } + diff --git a/src/components/UserPanel.vue b/src/components/UserPanel.vue index 8b3731478..5c143740e 100644 --- a/src/components/UserPanel.vue +++ b/src/components/UserPanel.vue @@ -173,14 +173,14 @@ function copyUserToken() {
- - - en: - localWarehouse: Local warehouse - localBank: Local bank - localCompany: Local company - userWarehouse: User warehouse - userCompany: User company - es: - localWarehouse: Almacén local - localBank: Banco local - localCompany: Empresa local - userWarehouse: Almacén del usuario - userCompany: Empresa del usuario - diff --git a/src/components/common/VnSelectFilter.vue b/src/components/common/VnSelectFilter.vue index 4903a5327..480d36e4f 100644 --- a/src/components/common/VnSelectFilter.vue +++ b/src/components/common/VnSelectFilter.vue @@ -51,8 +51,8 @@ const $props = defineProps({ default: null, }, limit: { - type: Number, - default: 30, + type: [Number, String], + default: '30', }, }); @@ -151,7 +151,7 @@ watch(modelValue, (newValue) => { @on-fetch="(data) => setOptions(data)" :where="where || { [optionValue]: value }" :limit="limit" - :order-by="orderBy" + :sort-by="sortBy" :fields="fields" />