From 64d8f86ea952bf28cc503e9fc86b93dcbabf0a72 Mon Sep 17 00:00:00 2001 From: Jon Date: Tue, 12 Mar 2024 12:25:31 +0100 Subject: [PATCH 1/7] refactor(routeList): refs #6971 moved button to subtoolbar + same functionality as other subtoolbar items --- src/pages/Route/RouteList.vue | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-) diff --git a/src/pages/Route/RouteList.vue b/src/pages/Route/RouteList.vue index 0b4aa6795..de600bc0e 100644 --- a/src/pages/Route/RouteList.vue +++ b/src/pages/Route/RouteList.vue @@ -255,6 +255,15 @@ const markAsServed = () => { > {{ t('Mark as served') }} + + + {{ t('newRoute') }} +
@@ -494,12 +503,6 @@ const markAsServed = () => {
- - - - {{ t('newRoute') }} - - From fe7d370a0a722524250fc257ed929a6a143c68fc Mon Sep 17 00:00:00 2001 From: Jon Date: Mon, 18 Mar 2024 09:48:27 +0100 Subject: [PATCH 2/7] refactor: refs #6837 move travel search like other sections --- src/pages/Travel/TravelFilter.vue | 9 --------- src/pages/Travel/TravelList.vue | 18 ++++++++++++++++++ 2 files changed, 18 insertions(+), 9 deletions(-) diff --git a/src/pages/Travel/TravelFilter.vue b/src/pages/Travel/TravelFilter.vue index c1c0d1bee..7e8d19405 100644 --- a/src/pages/Travel/TravelFilter.vue +++ b/src/pages/Travel/TravelFilter.vue @@ -60,15 +60,6 @@ const decrement = (paramsObj, key) => { From bf0e2d3bf661d0d9fc08b029bce745b2a6227edb Mon Sep 17 00:00:00 2001 From: Jon Date: Mon, 25 Mar 2024 09:52:04 +0100 Subject: [PATCH 6/7] refactor: refs #6971 fixed request changes --- src/pages/Route/RouteAutonomous.vue | 28 +++++++++++----------------- src/pages/Route/RouteList.vue | 16 ++++------------ 2 files changed, 15 insertions(+), 29 deletions(-) diff --git a/src/pages/Route/RouteAutonomous.vue b/src/pages/Route/RouteAutonomous.vue index 43dfac340..0ecf0a971 100644 --- a/src/pages/Route/RouteAutonomous.vue +++ b/src/pages/Route/RouteAutonomous.vue @@ -204,18 +204,7 @@ function navigateToRouteSummary(event, row) {
- - - - {{ t('Create invoiceIn') }} - - + + + + {{ t('Create invoiceIn') }} + +
es: diff --git a/src/pages/Route/RouteList.vue b/src/pages/Route/RouteList.vue index b5d2169c6..94c05ad54 100644 --- a/src/pages/Route/RouteList.vue +++ b/src/pages/Route/RouteList.vue @@ -444,18 +444,10 @@ const openTicketsDialog = (id) => {
- - {{ t('newRoute') }} + + + {{ t('newRoute') }} +
From c335accffb30731b089023bced8b94f6e762b215 Mon Sep 17 00:00:00 2001 From: alexm Date: Mon, 25 Mar 2024 12:42:48 +0100 Subject: [PATCH 7/7] 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" />