diff --git a/src/components/AttachmentsModal.vue b/src/components/AttachmentsModal.vue index a44d867..3dd62cb 100644 --- a/src/components/AttachmentsModal.vue +++ b/src/components/AttachmentsModal.vue @@ -9,7 +9,6 @@ const { getAttachmentLoad, loading, attachments } = useAttachments(); onMounted(() => { - console.log('se ejcyta attach'); getAttachmentLoad(); }) const { t } = useI18n(); diff --git a/src/components/CardLoad.vue b/src/components/CardLoad.vue index 7d4aeeb..945c1ad 100644 --- a/src/components/CardLoad.vue +++ b/src/components/CardLoad.vue @@ -120,8 +120,8 @@
-

{{t('loads.postStatus')}}: {{ getStatusPublished(load) }}

-

{{t('loads.loadStatus')}}: {{ getStatusLoad(load).status }}

+

{{t('loads.postStatus')}}: {{ getStatusPublished(load) }}

+

{{t('loads.loadStatus')}}: {{ getStatusLoad(load).status }}

@@ -231,7 +231,7 @@ height: 33px; } - p { + p .simple { font-size: 1rem; font-weight: 400; color: #323032; @@ -242,6 +242,7 @@ font-weight: 700; } + .btn-row { margin-top: 2rem; display: flex; diff --git a/src/components/CardProposal.vue b/src/components/CardProposal.vue index b09a5e0..dc2d2d9 100644 --- a/src/components/CardProposal.vue +++ b/src/components/CardProposal.vue @@ -4,6 +4,7 @@ import { getStatusLoad } from '../helpers/status'; import { useCompanyStore } from '../stores/company'; import { useAuthStore } from '../stores/auth'; + import { useLoadsStore } from '../stores/loads'; import { useI18n } from 'vue-i18n'; const props = defineProps({ @@ -17,6 +18,7 @@ const companyStore = useCompanyStore(); const authStore = useAuthStore(); + const loadsStore = useLoadsStore(); const { t, locale } = useI18n(); const handleWithdrawnProposal = async() => { @@ -72,6 +74,11 @@ } defineEmits(['set-proposal']); + + const openAttachmentsModal = () => { + loadsStore.currentLoad = props.proposal.load; + loadsStore.openAttachmentsModal = true; + }