make searchbar work
gitea/salix-front/pipeline/pr-dev This commit looks good
Details
gitea/salix-front/pipeline/pr-dev This commit looks good
Details
This commit is contained in:
parent
1c14841233
commit
8320a75e61
|
@ -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>
|
||||
|
|
|
@ -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'),
|
||||
},
|
||||
],
|
||||
},
|
||||
|
|
|
@ -9,7 +9,7 @@ export default {
|
|||
moduleName: 'Alias',
|
||||
},
|
||||
component: RouterView,
|
||||
redirect: { name: 'AccountAlias' },
|
||||
redirect: { name: 'AccountAliasList' },
|
||||
menus: {
|
||||
main: [],
|
||||
card: ['AliasBasicData', 'AliasUsers'],
|
||||
|
|
Loading…
Reference in New Issue