feature notifications
This commit is contained in:
@@ -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')}
|
||||
]
|
||||
})
|
||||
|
||||
|
||||
@@ -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">
|
||||
|
||||
Reference in New Issue
Block a user