From 37329a73914ef10f355c9fe7698e9dd58a9a063a Mon Sep 17 00:00:00 2001 From: Javier Segarra Date: Wed, 18 Sep 2024 13:30:51 +0200 Subject: [PATCH] feat: add shortcut add event in some subSections --- src/pages/Customer/Card/CustomerContacts.vue | 9 +++++---- .../Customer/components/CustomerAddressEdit.vue | 9 +++++---- src/pages/Item/Card/ItemTags.vue | 9 +++++---- src/pages/Route/Roadmap/RoadmapStops.vue | 9 +++++---- src/pages/Supplier/Card/SupplierAccounts.vue | 13 ++++++------- src/pages/Supplier/Card/SupplierContacts.vue | 9 +++++---- src/pages/Worker/WorkerDepartmentTree.vue | 9 +++++---- 7 files changed, 36 insertions(+), 31 deletions(-) diff --git a/src/pages/Customer/Card/CustomerContacts.vue b/src/pages/Customer/Card/CustomerContacts.vue index cd4d553df..c420f650e 100644 --- a/src/pages/Customer/Card/CustomerContacts.vue +++ b/src/pages/Customer/Card/CustomerContacts.vue @@ -56,17 +56,18 @@ const customerContactsRef = ref(null); - {{ t('Add contact') }} - + diff --git a/src/pages/Customer/components/CustomerAddressEdit.vue b/src/pages/Customer/components/CustomerAddressEdit.vue index 2252a96dc..82a190ae1 100644 --- a/src/pages/Customer/components/CustomerAddressEdit.vue +++ b/src/pages/Customer/components/CustomerAddressEdit.vue @@ -272,16 +272,17 @@ function handleLocation(data, location) { - {{ t('Add note') }} - + diff --git a/src/pages/Item/Card/ItemTags.vue b/src/pages/Item/Card/ItemTags.vue index 39723ae65..1b5eb28f0 100644 --- a/src/pages/Item/Card/ItemTags.vue +++ b/src/pages/Item/Card/ItemTags.vue @@ -168,19 +168,20 @@ const insertTag = (rows) => { - {{ t('itemTags.addTag') }} - + diff --git a/src/pages/Route/Roadmap/RoadmapStops.vue b/src/pages/Route/Roadmap/RoadmapStops.vue index 8ff044d2d..d8215ea49 100644 --- a/src/pages/Route/Roadmap/RoadmapStops.vue +++ b/src/pages/Route/Roadmap/RoadmapStops.vue @@ -65,9 +65,10 @@ const updateDefaultStop = (data) => { - { {{ t('Add stop') }} - + diff --git a/src/pages/Supplier/Card/SupplierAccounts.vue b/src/pages/Supplier/Card/SupplierAccounts.vue index b0e8b06e8..f8fbba0e4 100644 --- a/src/pages/Supplier/Card/SupplierAccounts.vue +++ b/src/pages/Supplier/Card/SupplierAccounts.vue @@ -102,9 +102,7 @@ const setWireTransfer = async () => { @@ -165,9 +163,10 @@ const setWireTransfer = async () => { - { {{ t('Add account') }} - + diff --git a/src/pages/Supplier/Card/SupplierContacts.vue b/src/pages/Supplier/Card/SupplierContacts.vue index 35e8b98fc..3f2063784 100644 --- a/src/pages/Supplier/Card/SupplierContacts.vue +++ b/src/pages/Supplier/Card/SupplierContacts.vue @@ -84,9 +84,10 @@ const insertRow = () => { - { {{ t('Add contact') }} - + diff --git a/src/pages/Worker/WorkerDepartmentTree.vue b/src/pages/Worker/WorkerDepartmentTree.vue index 392539c86..c73cb59b9 100644 --- a/src/pages/Worker/WorkerDepartmentTree.vue +++ b/src/pages/Worker/WorkerDepartmentTree.vue @@ -180,17 +180,18 @@ function handleEvent(type, event, node) { {{ t('Remove') }} - {{ t('Create') }} - +