make searchbar work
gitea/salix-front/pipeline/pr-dev This commit looks good Details

This commit is contained in:
William Buezas 2024-06-03 09:03:37 -03:00
parent 1c14841233
commit 8320a75e61
4 changed files with 9 additions and 5 deletions

View File

@ -7,9 +7,11 @@ import VnPaginate from 'components/ui/VnPaginate.vue';
import { useVnConfirm } from 'composables/useVnConfirm';
import { useArrayData } from 'composables/useArrayData';
import useNotify from 'src/composables/useNotify.js';
import axios from 'axios';
const { t } = useI18n();
const { notify } = useNotify();
const route = useRoute();
const { openConfirmationModal } = useVnConfirm();
@ -46,6 +48,7 @@ const columns = computed(() => [
const deleteAlias = async (row) => {
try {
await axios.delete(`${urlPath.value}/${row.id}`);
notify(t('User removed'), 'positive');
fetchAliases();
} catch (error) {
console.error(error);
@ -113,5 +116,6 @@ const fetchAliases = () => paginateRef.value.fetch();
es:
User will be removed from alias: El usuario será borrado del alias
Are you sure you want to continue?: ¿Seguro que quieres continuar?
User removed: Usuario borrado
Delete: Eliminar
</i18n>

View File

@ -11,7 +11,7 @@ export default {
component: RouterView,
redirect: { name: 'AccountMain' },
menus: {
main: ['AccountList', 'AccountAlias'],
main: ['AccountList', 'AccountAliasList'],
card: [],
},
children: [
@ -31,13 +31,13 @@ export default {
component: () => import('src/pages/Account/AccountList.vue'),
},
{
path: 'alias',
name: 'AccountAlias',
path: 'alias-list',
name: 'AccountAliasList',
meta: {
title: 'alias',
icon: 'email',
},
component: () => import('src/pages/Account/AccountAlias.vue'),
component: () => import('src/pages/Account/AccountAliasList.vue'),
},
],
},

View File

@ -9,7 +9,7 @@ export default {
moduleName: 'Alias',
},
component: RouterView,
redirect: { name: 'AccountAlias' },
redirect: { name: 'AccountAliasList' },
menus: {
main: [],
card: ['AliasBasicData', 'AliasUsers'],