diff --git a/src/assets/main.css b/src/assets/main.css
index 83f8674..bfeda21 100644
--- a/src/assets/main.css
+++ b/src/assets/main.css
@@ -3,6 +3,11 @@ body {
padding: 0px;
}
+/*Colors*/
+.primary-color-eta {
+ color: #FBBA33;
+}
+
.flex-d-column {
display: flex;
flex-direction: column;
@@ -39,6 +44,18 @@ body {
.font-bold {
font-weight: bold;
}
+
+ .fsize-1 {
+ font-size: 1rem;
+ }
+
+ .fsize-1-5 {
+ font-size: 1.5rem;
+ }
+
+ .fsize-2 {
+ font-size: 2rem;
+ }
/* *********** */
.divider {
@@ -130,6 +147,12 @@ body {
color: #FBBA33;
}
+.text-tertiary {
+ font-size: 1rem !important;
+ font-weight: 500 !important;
+ color: rgb(181, 168, 168) !important;
+}
+
.card-info,
.card-fixed {
width: 100%;
diff --git a/src/components/CardLoad.vue b/src/components/CardLoad.vue
index d84da9a..8224bd3 100644
--- a/src/components/CardLoad.vue
+++ b/src/components/CardLoad.vue
@@ -121,6 +121,9 @@
+ Carga privada
+
{{t('loads.origin')}}:
diff --git a/src/services/company.js b/src/services/company.js
index 8f6f4bc..4834d92 100644
--- a/src/services/company.js
+++ b/src/services/company.js
@@ -54,6 +54,7 @@ export const updateUser = async(user_id, formData) => {
export const updateMyUserProfile = async(formData) => {
try {
const endpoint = `/v1/users/profile`;
+ console.log(formData);
const {data} = await api.patch(endpoint, formData);
return {
msg: "success",
diff --git a/src/stores/privacy.js b/src/stores/privacy.js
index 2236ac9..0c8d710 100644
--- a/src/stores/privacy.js
+++ b/src/stores/privacy.js
@@ -23,6 +23,7 @@ export const usePrivacyStore = defineStore('privacy', () => {
const response = await getPrivateListService();
if(response.msg == 'success') {
privateList.value = response.data.allowedCompanies || [];
+ privateListRef.value = privateList.value.map((e) => e._id);
return 'success';
} else {
return response.msg;
@@ -45,10 +46,7 @@ export const usePrivacyStore = defineStore('privacy', () => {
const deleteCompanyToPrivateList = async (id) => {
const response = await deleteCompanyPrivicyListService(id);
if(response.msg == 'success') {
- privateListRef.value = [
- ...privateListRef.value,
- id
- ]
+ removeContact(id);
return 'success';
} else {
return response.msg;
@@ -56,9 +54,9 @@ export const usePrivacyStore = defineStore('privacy', () => {
}
/// State
-
const removeContact = (id) => {
- privateList.value = privateList.value.filter((e) => e.id !== id);
+ privateList.value = privateList.value.filter((e) => e._id !== id);
+ privateListRef.value = privateListRef.value.filter((e) => e !== id);
}
return {
diff --git a/src/views/contacts/components/ContactCard.vue b/src/views/contacts/components/ContactCard.vue
index e83bb5a..bcfceed 100644
--- a/src/views/contacts/components/ContactCard.vue
+++ b/src/views/contacts/components/ContactCard.vue
@@ -27,7 +27,7 @@ import { computed } from 'vue';
confirmButtonText: t('buttons.delete'),
cancelButtonText: t('buttons.cancel'),
}).then(async(result) => {
- const id = props.contact.id;
+ const id = props.contact._id;
if(result.isConfirmed) {
Swal.fire({
title: t('messages.loading'),
@@ -41,7 +41,7 @@ import { computed } from 'vue';
resp = true
Swal.close();
if(resp != null) {
- contactsStore.removeContact(id);
+ contactsStore.deleteCompanyToPrivateList(id);
Swal.fire({
title: 'Transportista eliminado',
text: 'Se ha eliminado el transportista de la lista privada',
@@ -71,6 +71,11 @@ import { computed } from 'vue';
: ''
)
+ const states = computed(() => (props.contact.company_state)
+ ? props.contact.company_state.join(', ')
+ : ''
+ )
+
@@ -80,7 +85,7 @@ import { computed } from 'vue';
RFC: {{ contact.rfc}} {{ t('global.segments') }}: {{ categories }} {{ t('directory.typeTruckNeed') }}: {{ truckTypes }} Camiones usados: {{ truckTypes }} Estados: {{ states }}{{ contact.company_name }}