translations users & directory

This commit is contained in:
Alexandro Uc Santos
2024-05-25 18:14:17 -06:00
parent 264a6c6dfc
commit 8f33177dad
14 changed files with 549 additions and 385 deletions

View File

@@ -7,6 +7,7 @@
import CardLocation from '../components/CardLocation.vue';
import Pagination from '../components/Pagination.vue';
import CustomPopup from '../components/CustomPopup.vue';
import { useI18n } from 'vue-i18n';
const companyStore = useCompanyStore();
@@ -15,10 +16,12 @@
const query = ref('');
const locationCurrent = ref(null);
const openModal = ref(false);
const { t } = useI18n();
// const typeDirection = ref(null)
const typeDirection = ref({value: 'both', label: 'Ambas'})
const typeDirection = ref({value: 'both', label: t('labels.both')})
const openPopup = ref(false);
onMounted(() => {
getInitData();
})
@@ -105,9 +108,9 @@
}
const optionsFilter = [
{value: 'both',label: 'Ambas'},
{value: 'load',label: 'Carga'},
{value: 'download',label: 'Descarga'}
{value: 'both',label: t('labels.both')},
{value: 'load',label: t('labels.load')},
{value: 'download',label: t('labels.download')}
]
const closePopup = () => {
@@ -134,28 +137,28 @@
:location="locationCurrent"
@reset-location="handleResetCurrentBudget"
/>
<h2 class="title">Directorio interno</h2>
<h2 class="title">{{ t('global.directory') }}</h2>
<div class="box-filters">
<div class="box-search">
<input class="form-control custom-search" type="search" name="" placeholder="Buscar por nombre de locación" id="" @:input="search()" v-model="query" aria-label="Search">
<input class="form-control custom-search" type="search" name="" :placeholder="t('directory.querySearch')" id="" @:input="search()" v-model="query" aria-label="Search">
</div>
<div class="box-directory"
@click="openPopup = true"
>
<span class="clear-sm" v-if="typeDirection === null">Directorio</span>
<span class="clear-sm" v-if="typeDirection === null">{{ t('directory.directory') }}</span>
<span class="clear-sm" v-else>{{typeDirection.label}}</span>
<i class="fa-solid fa-filter"></i>
</div>
<button
class="btn btn-danger bg-dark" type="button" @click="clearFilter">
<i class="fa-solid fa-arrow-rotate-right"></i>
<span class="clear-sm"> Reset</span><span class="clear-md"> filtros</span>
<span class="clear-sm"> Reset </span><span class="clear-md"> {{ t('labels.filters').toLocaleLowerCase() }}</span>
</button>
<button
class="btn-primary-sm radius-sm"
data-toggle="modal" data-target="#locationFormModal"
@click="handleSetCurrentLocation(null)"
><i class="fa-solid fa-plus"></i> <span class="clear-sm"> Agregar</span><span class="clear-md"> locación</span></button>
><i class="fa-solid fa-plus"></i> <span class="clear-sm"> {{ t('buttons.add') }}</span> <span class="clear-md"> {{ t('labels.location') }}</span></button>
</div>
<div v-if="loading" class="spiner-box">
<Spiner/>