diff --git a/src/components/ui/VnFilterPanel.vue b/src/components/ui/VnFilterPanel.vue index 4fd511631..e3019663c 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, @@ -198,8 +198,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/i18n/locale/es.yml b/src/i18n/locale/es.yml index 747a10d51..900de6d07 100644 --- a/src/i18n/locale/es.yml +++ b/src/i18n/locale/es.yml @@ -876,7 +876,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/AccountAcls.vue b/src/pages/Account/AccountAcls.vue index ad8600786..fdb0ecee1 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, }, @@ -118,13 +123,6 @@ const deleteAcl = async ({ id }) => {