Account ACLs #422
|
@ -7,9 +7,11 @@ import VnPaginate from 'components/ui/VnPaginate.vue';
|
||||||
|
|
||||||
import { useVnConfirm } from 'composables/useVnConfirm';
|
import { useVnConfirm } from 'composables/useVnConfirm';
|
||||||
import { useArrayData } from 'composables/useArrayData';
|
import { useArrayData } from 'composables/useArrayData';
|
||||||
|
import useNotify from 'src/composables/useNotify.js';
|
||||||
import axios from 'axios';
|
import axios from 'axios';
|
||||||
|
|
||||||
const { t } = useI18n();
|
const { t } = useI18n();
|
||||||
|
const { notify } = useNotify();
|
||||||
const route = useRoute();
|
const route = useRoute();
|
||||||
const { openConfirmationModal } = useVnConfirm();
|
const { openConfirmationModal } = useVnConfirm();
|
||||||
|
|
||||||
|
@ -46,6 +48,7 @@ const columns = computed(() => [
|
||||||
const deleteAlias = async (row) => {
|
const deleteAlias = async (row) => {
|
||||||
try {
|
try {
|
||||||
await axios.delete(`${urlPath.value}/${row.id}`);
|
await axios.delete(`${urlPath.value}/${row.id}`);
|
||||||
|
notify(t('User removed'), 'positive');
|
||||||
fetchAliases();
|
fetchAliases();
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
console.error(error);
|
console.error(error);
|
||||||
|
@ -113,5 +116,6 @@ const fetchAliases = () => paginateRef.value.fetch();
|
||||||
es:
|
es:
|
||||||
User will be removed from alias: El usuario será borrado del alias
|
User will be removed from alias: El usuario será borrado del alias
|
||||||
Are you sure you want to continue?: ¿Seguro que quieres continuar?
|
Are you sure you want to continue?: ¿Seguro que quieres continuar?
|
||||||
|
User removed: Usuario borrado
|
||||||
Delete: Eliminar
|
Delete: Eliminar
|
||||||
</i18n>
|
</i18n>
|
||||||
|
|
|
@ -11,7 +11,7 @@ export default {
|
||||||
component: RouterView,
|
component: RouterView,
|
||||||
redirect: { name: 'AccountMain' },
|
redirect: { name: 'AccountMain' },
|
||||||
menus: {
|
menus: {
|
||||||
main: ['AccountList', 'AccountAlias'],
|
main: ['AccountList', 'AccountAliasList'],
|
||||||
card: [],
|
card: [],
|
||||||
},
|
},
|
||||||
children: [
|
children: [
|
||||||
|
@ -31,13 +31,13 @@ export default {
|
||||||
component: () => import('src/pages/Account/AccountList.vue'),
|
component: () => import('src/pages/Account/AccountList.vue'),
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
path: 'alias',
|
path: 'alias-list',
|
||||||
name: 'AccountAlias',
|
name: 'AccountAliasList',
|
||||||
meta: {
|
meta: {
|
||||||
title: 'alias',
|
title: 'alias',
|
||||||
icon: 'email',
|
icon: 'email',
|
||||||
},
|
},
|
||||||
component: () => import('src/pages/Account/AccountAlias.vue'),
|
component: () => import('src/pages/Account/AccountAliasList.vue'),
|
||||||
},
|
},
|
||||||
],
|
],
|
||||||
},
|
},
|
||||||
|
|
|
@ -9,7 +9,7 @@ export default {
|
||||||
moduleName: 'Alias',
|
moduleName: 'Alias',
|
||||||
},
|
},
|
||||||
component: RouterView,
|
component: RouterView,
|
||||||
redirect: { name: 'AccountAlias' },
|
redirect: { name: 'AccountAliasList' },
|
||||||
menus: {
|
menus: {
|
||||||
main: [],
|
main: [],
|
||||||
card: ['AliasBasicData', 'AliasUsers'],
|
card: ['AliasBasicData', 'AliasUsers'],
|
||||||
|
|
Loading…
Reference in New Issue