feature notifications

This commit is contained in:
Alexandro Uc Santos
2024-09-07 18:44:57 -06:00
parent 84c0595f5b
commit c5f0831a81
23 changed files with 514 additions and 96 deletions

View File

@@ -38,17 +38,18 @@
await companyStore.getLocationsCompany(filterQuery.value, false)
optionsFilter.value = [
{value: 'both',label: t('labels.both')},
{value: 'load',label: t('labels.load')},
{value: 'download',label: t('labels.download')}
{value: 'loading',label: t('labels.load')},
{value: 'unloading',label: t('labels.download')}
]
console.log(companyStore.locations)
loading.value = false;
}
watch(locale, () => {
optionsFilter.value = [
{value: 'both',label: t('labels.both')},
{value: 'load',label: t('labels.load')},
{value: 'download',label: t('labels.download')}
{value: 'loading',label: t('labels.load')},
{value: 'unloading',label: t('labels.download')}
]
})

View File

@@ -159,9 +159,13 @@
}
const handleResetCurrentLoad = () => {
console.log('se resear');
currentLoad.value = null
}
const removeLoadOfList = (load) => {
console.log('se ejecuta removeLoadOfList');
loads.value = loads.value.filter((e) => e._id !== load._id);
}
</script>
<template>
@@ -170,6 +174,7 @@
v-if="currentLoad"
:load="currentLoad"
@reset-load="handleResetCurrentLoad"
@remove-load="removeLoadOfList"
/>
<div class="card-filters">