0
0
Fork 0

small changes

This commit is contained in:
William Buezas 2024-05-29 08:47:33 -03:00
parent 6c34a250db
commit e47bda0afc
5 changed files with 14 additions and 3 deletions

View File

@ -46,6 +46,10 @@ const props = defineProps({
type: Array,
default: () => [],
},
redirect: {
type: Boolean,
default: true,
},
});
const emit = defineEmits(['refresh', 'clear', 'search', 'init', 'remove']);
@ -93,7 +97,7 @@ async function search() {
isLoading.value = false;
emit('search');
navigate(store.data, {});
if (props.redirect) navigate(store.data, {});
}
async function reload() {
@ -104,7 +108,7 @@ async function reload() {
if (!props.showAll && !params.length) store.data = [];
isLoading.value = false;
emit('refresh');
navigate(store.data, {});
if (props.redirect) navigate(store.data, {});
}
async function clearFilters() {

View File

@ -13,6 +13,10 @@ const props = defineProps({
type: String,
required: true,
},
exprBuilder: {
type: Function,
default: null,
},
});
const rolesOptions = ref([]);
@ -29,6 +33,7 @@ const rolesOptions = ref([]);
:data-key="props.dataKey"
:search-button="true"
:hidden-tags="['search']"
:redirect="false"
>
<template #tags="{ tag, formatFn }">
<div class="q-gutter-x-xs">

View File

@ -65,7 +65,7 @@ const redirectToItemCreate = () => router.push({ name: 'AccountCreate' });
url="VnUsers/preview"
:expr-builder="exprBuilder"
:label="t('account.search')"
:info="t('You can search by account id or customer name')"
:info="t('account.searchInfo')"
/>
</Teleport>
<Teleport to="#actions-append">

View File

@ -35,6 +35,7 @@ account:
sync: Sync
delete: Delete
search: Search user
searchInfo: You can search by id, name or nickname
role:
pageTitles:
inheritedRoles: Inherited Roles

View File

@ -44,6 +44,7 @@ account:
title: El usuario será eliminado
subtitle: ¿Seguro que quieres continuar?
search: Buscar usuario
searchInfo: Puedes buscar por id, nombre o usuario
role:
pageTitles:
inheritedRoles: Roles heredados