7355-accountMigration2 #619

Merged
carlossa merged 9 commits from 7355-accountMigration2 into dev 2024-08-13 13:10:39 +00:00
3 changed files with 5 additions and 18 deletions
Showing only changes of commit 405092f66d - Show all commits

View File

@ -60,7 +60,7 @@ const columns = computed(() => [
<VnTable <VnTable
ref="tableRef" ref="tableRef"
data-key="AccountAliasList" data-key="AccountAliasList"
:url="`MailAliases`" url="MailAliases"
:create="{ :create="{
urlCreate: 'MailAliases', urlCreate: 'MailAliases',
title: 'Create MailAlias', title: 'Create MailAlias',

View File

@ -1,22 +1,8 @@
<script setup> <script setup>
import { useI18n } from 'vue-i18n'; import { useI18n } from 'vue-i18n';
import { useRoute } from 'vue-router';
import { computed } from 'vue';
import VnCard from 'components/common/VnCard.vue'; import VnCard from 'components/common/VnCard.vue';
import AliasDescriptor from './AliasDescriptor.vue'; import AliasDescriptor from './AliasDescriptor.vue';
const { t } = useI18n(); const { t } = useI18n();
const route = useRoute();
const routeName = computed(() => route.name);
const customRouteRedirectName = computed(() => {
return routeName.value;
});
const searchBarDataKeys = {
AliasBasicData: 'AliasBasicData',
AliasUsers: 'AliasUsers',
};
</script> </script>
<template> <template>
@ -24,12 +10,12 @@ const searchBarDataKeys = {
data-key="Alias" data-key="Alias"
base-url="MailAliases" base-url="MailAliases"
:descriptor="AliasDescriptor" :descriptor="AliasDescriptor"
:search-data-key="searchBarDataKeys[routeName]" search-data-key="AccountAliasList"
:searchbar-props="{ :searchbar-props="{
redirect: !!customRouteRedirectName, url: 'MailAliases',
customRouteRedirectName,
info: t('mailAlias.searchInfo'), info: t('mailAlias.searchInfo'),
label: t('mailAlias.search'), label: t('mailAlias.search'),
searchUrl: 'table',
}" }"
/> />
</template> </template>

View File

@ -14,6 +14,7 @@ const { t } = useI18n();
url: 'VnRoles', url: 'VnRoles',
label: t('role.searchRoles'), label: t('role.searchRoles'),
info: t('role.searchInfo'), info: t('role.searchInfo'),
searchUrl: 'table',
}" }"
/> />
</template> </template>