Account Submodule #412

Merged
jsegarra merged 29 commits from :feature/AccountList into dev 2024-06-19 05:45:08 +00:00
3 changed files with 17 additions and 32 deletions
Showing only changes of commit c2dd7831d1 - Show all commits

View File

@ -1,15 +1,10 @@
<script setup> <script setup>
import { ref, computed, onMounted } from 'vue'; import { ref, computed } from 'vue';
import { useRoute } from 'vue-router'; import { useRoute } from 'vue-router';
import { useI18n } from 'vue-i18n'; import { useI18n } from 'vue-i18n';
import { toDate, toPercentage } from 'src/filters';
import { useState } from 'src/composables/useState';
import CardDescriptor from 'components/ui/CardDescriptor.vue'; import CardDescriptor from 'components/ui/CardDescriptor.vue';
import VnLv from 'src/components/ui/VnLv.vue'; import VnLv from 'src/components/ui/VnLv.vue';
import useCardDescription from 'src/composables/useCardDescription'; import useCardDescription from 'src/composables/useCardDescription';
import VnUserLink from 'src/components/ui/VnUserLink.vue';
import { getUrl } from 'src/composables/getUrl';
import AccountDescriptorMenu from './AccountDescriptorMenu.vue';
import { useSession } from 'src/composables/useSession'; import { useSession } from 'src/composables/useSession';
const $props = defineProps({ const $props = defineProps({
id: { id: {
@ -20,7 +15,6 @@ const $props = defineProps({
}); });
const route = useRoute(); const route = useRoute();
const state = useState();
const { t } = useI18n(); const { t } = useI18n();
const salixUrl = ref(); const salixUrl = ref();
const { getTokenMultimedia } = useSession(); const { getTokenMultimedia } = useSession();
@ -66,9 +60,6 @@ function getAccountAvatar() {
</QTooltip> </QTooltip>
</QBtn> </QBtn>
</template> </template>
<template #menu="{ entity }">
<AccountDescriptorMenu :account="entity" />
</template>
<template #before> <template #before>
<QImg :src="getAccountAvatar()" class="photo"> <QImg :src="getAccountAvatar()" class="photo">
<template #error> <template #error>

View File

@ -29,11 +29,20 @@ account:
setPassword: Set password setPassword: Set password
disableAccount: disableAccount:
name: Disable account name: Disable account
title: La cuenta será deshabilitada title: The account will be disabled
subtitle: ¿Seguro que quieres continuar? subtitle: Are you sure you want to continue?
disableUser: Disable user disableUser:
sync: Sync name: Disable user
delete: Delete title: The user will be disabled
subtitle: Are you sure you want to continue?
sync:
name: Sync
title: The account will be sync
subtitle: Are you sure you want to continue?
delete:
name: Delete
title: The account will be deleted
subtitle: Are you sure you want to continue?
search: Search user search: Search user
searchInfo: You can search by id, name or nickname searchInfo: You can search by id, name or nickname
create: create:

View File

@ -11,23 +11,8 @@ export default {
component: RouterView, component: RouterView,
redirect: { name: 'AccountMain' }, redirect: { name: 'AccountMain' },
menus: { menus: {
jsegarra marked this conversation as resolved
Review

Si solo sube account quitamos las otras secciones que estan vacias

Si solo sube account quitamos las otras secciones que estan vacias
main: [ main: ['AccountList'],
'AccountList', card: [],
'AccountRoles',
'AccountAlias',
'AccountAccounts',
'AccountLdap',
'AccountSamba',
'AccountConnections',
],
card: [
'AccountBasicData',
'AccountInheritedRoles',
'AccountMailForwarding',
'AccountMailAlias',
'AccountPrivileges',
'AccountLog',
],
}, },
children: [ children: [
{ {