From 6b69a1612222cf94b65e99724a4943e2af991489 Mon Sep 17 00:00:00 2001 From: carlossa Date: Wed, 7 Aug 2024 12:22:52 +0200 Subject: [PATCH 1/7] refs #7355 changes BasicData --- src/i18n/locale/es.yml | 2 +- src/pages/Account/AccountList.vue | 9 ++++++++- src/pages/Account/Card/AccountBasicData.vue | 4 +++- 3 files changed, 12 insertions(+), 3 deletions(-) diff --git a/src/i18n/locale/es.yml b/src/i18n/locale/es.yml index 0266bd208..708084d45 100644 --- a/src/i18n/locale/es.yml +++ b/src/i18n/locale/es.yml @@ -873,7 +873,7 @@ worker: card: workerId: ID Trabajador name: Nombre - email: Email + email: Correo personal phone: Teléfono mobile: Móvil active: Activo diff --git a/src/pages/Account/AccountList.vue b/src/pages/Account/AccountList.vue index ecb027e49..d789fdf84 100644 --- a/src/pages/Account/AccountList.vue +++ b/src/pages/Account/AccountList.vue @@ -48,6 +48,14 @@ const columns = computed(() => [ cardVisible: true, create: true, }, + { + align: 'left', + name: 'email', + label: t('email'), + component: 'input', + create: true, + visible: false, + }, { align: 'right', label: '', @@ -96,7 +104,6 @@ const exprBuilder = (param, value) => { order="id DESC" :columns="columns" default-mode="table" - auto-load redirect="account" :use-model="true" /> diff --git a/src/pages/Account/Card/AccountBasicData.vue b/src/pages/Account/Card/AccountBasicData.vue index 42b77419f..f38299f9e 100644 --- a/src/pages/Account/Card/AccountBasicData.vue +++ b/src/pages/Account/Card/AccountBasicData.vue @@ -37,9 +37,11 @@ watch( -- 2.40.1 From 3eaa5c864d45c28ada6322ef5d333b8588260a95 Mon Sep 17 00:00:00 2001 From: carlossa Date: Thu, 8 Aug 2024 13:57:01 +0200 Subject: [PATCH 2/7] refs #7355 account fixes --- src/components/ui/VnFilterPanel.vue | 8 ++-- src/pages/Account/AccountAcls.vue | 26 ++++++++-- src/pages/Account/Card/AccountCard.vue | 5 +- .../Account/Card/AccountDescriptorMenu.vue | 48 +++++++++++++++++++ src/pages/Account/Card/AccountPrivileges.vue | 9 +--- src/pages/Account/Role/AccountRoles.vue | 17 ++++++- src/pages/Account/Role/Card/RoleBasicData.vue | 5 -- src/router/modules/account.js | 18 +++---- 8 files changed, 102 insertions(+), 34 deletions(-) diff --git a/src/components/ui/VnFilterPanel.vue b/src/components/ui/VnFilterPanel.vue index 430383e40..ebae673a2 100644 --- a/src/components/ui/VnFilterPanel.vue +++ b/src/components/ui/VnFilterPanel.vue @@ -37,7 +37,7 @@ const $props = defineProps({ }, hiddenTags: { type: Array, - default: () => ['filter'], + default: () => ['filter', 'search', 'or', 'and'], }, customTags: { type: Array, @@ -195,8 +195,10 @@ function formatValue(value) { function sanitizer(params) { for (const [key, value] of Object.entries(params)) { - if (typeof value == 'object') - params[key] = Object.values(value)[0].replaceAll('%', ''); + if (typeof value == 'object') { + const param = Object.values(value)[0]; + if (typeof param == 'string') params[key] = param.replaceAll('%', ''); + } } return params; } diff --git a/src/pages/Account/AccountAcls.vue b/src/pages/Account/AccountAcls.vue index ad8600786..3a6679956 100644 --- a/src/pages/Account/AccountAcls.vue +++ b/src/pages/Account/AccountAcls.vue @@ -41,14 +41,12 @@ const columns = computed(() => [ name: 'id', label: t('id'), isId: true, - field: 'id', cardVisible: true, }, { align: 'left', name: 'model', label: t('model'), - field: 'model', cardVisible: true, create: true, }, @@ -56,15 +54,19 @@ const columns = computed(() => [ align: 'left', name: 'principalId', label: t('principalId'), - field: 'principalId', cardVisible: true, + component: 'select', + attrs: { + url: 'VnRoles', + optionLabel: 'name', + optionValue: 'name', + }, create: true, }, { align: 'left', name: 'property', label: t('property'), - field: 'property', cardVisible: true, create: true, }, @@ -72,7 +74,10 @@ const columns = computed(() => [ align: 'left', name: 'accessType', label: t('accessType'), - field: 'accessType', + component: 'select', + attrs: { + options: ['READ', 'WRITE', '*'], + }, cardVisible: true, create: true, }, @@ -162,4 +167,15 @@ es: Are you sure you want to continue?: ¿Seguro que quieres continuar? Remove ACL: Eliminar Acl Do you want to remove this ACL?: ¿Quieres eliminar este ACL? + principalId: Rol + model: Modelo +en: + New ACL: New ACL + ACL removed: ACL removed + ACL will be removed: ACL will be removed + Are you sure you want to continue?: Are you sure you want to continue? + Remove ACL: Remove ACL + Do you want to remove this ACL?: Do you want to remove this ACL? + principalId: Rol + model: Models diff --git a/src/pages/Account/Card/AccountCard.vue b/src/pages/Account/Card/AccountCard.vue index e4db3ee2b..555ce0866 100644 --- a/src/pages/Account/Card/AccountCard.vue +++ b/src/pages/Account/Card/AccountCard.vue @@ -25,9 +25,8 @@ const searchBarDataKeys = { diff --git a/src/pages/Account/Card/AccountDescriptorMenu.vue b/src/pages/Account/Card/AccountDescriptorMenu.vue index 05576b145..f67cc0c6b 100644 --- a/src/pages/Account/Card/AccountDescriptorMenu.vue +++ b/src/pages/Account/Card/AccountDescriptorMenu.vue @@ -82,6 +82,54 @@ const removeAccount = async () => { }; diff --git a/src/router/modules/account.js b/src/router/modules/account.js index 3faa00fbc..cfec2b95d 100644 --- a/src/router/modules/account.js +++ b/src/router/modules/account.js @@ -65,13 +65,13 @@ export default { component: () => import('src/pages/Account/AccountAliasList.vue'), }, { - path: 'connections', - name: 'AccountConnections', + path: 'acls', + name: 'AccountAcls', meta: { - title: 'connections', + title: 'acls', icon: 'check', }, - component: () => import('src/pages/Account/AccountConnections.vue'), + component: () => import('src/pages/Account/AccountAcls.vue'), }, { path: 'accounts', @@ -104,13 +104,13 @@ export default { component: () => import('src/pages/Account/AccountSamba.vue'), }, { - path: 'acls', - name: 'AccountAcls', + path: 'connections', + name: 'AccountConnections', meta: { - title: 'acls', - icon: 'check', + title: 'connections', + icon: 'share', }, - component: () => import('src/pages/Account/AccountAcls.vue'), + component: () => import('src/pages/Account/AccountConnections.vue'), }, { path: 'acl-form', -- 2.40.1 From 40c3ba15e6e0e02756526535af42462df54d3f11 Mon Sep 17 00:00:00 2001 From: carlossa Date: Thu, 8 Aug 2024 14:55:53 +0200 Subject: [PATCH 3/7] refs #7355 account acls roles cars --- src/pages/Account/AccountAcls.vue | 7 ------- src/pages/Account/Role/AccountRoles.vue | 16 ++++++---------- src/pages/Account/Role/Card/RoleCard.vue | 5 ++--- 3 files changed, 8 insertions(+), 20 deletions(-) diff --git a/src/pages/Account/AccountAcls.vue b/src/pages/Account/AccountAcls.vue index 3a6679956..080956d46 100644 --- a/src/pages/Account/AccountAcls.vue +++ b/src/pages/Account/AccountAcls.vue @@ -123,13 +123,6 @@ const deleteAcl = async ({ id }) => {