8016-userRole #1677

Open
alexm wants to merge 5 commits from 8016-userRole into dev
1 changed files with 10 additions and 5 deletions
Showing only changes of commit 892d2eb84c - Show all commits

View File

@ -20,7 +20,7 @@ const selectedRows = ref([]);
const columns = computed(() => [
{
name: 'roleFk',
label: t('Role'),
label: t('account.card.role'),
component: 'select',
attrs: {
options: rolesOptions,
@ -33,12 +33,16 @@ const columns = computed(() => [
'update:modelValue': (role) => suggestionNewRole(role),
},
},
columnFilter: false,
cardVisible: true,
},
{
name: 'hasGrant',
label: t('hasGrant'),
label: t('account.card.privileges.delegate'),
component: 'checkbox',
create: true,
columnFilter: false,
cardVisible: true,
},
]);
@ -47,7 +51,7 @@ const suggestionColumns = computed(() => [
align: 'center',
name: 'role',
field: 'role',
label: t('Include your roles'),
label: t('Suggestion for role change'),
format: (row) => rolesOptions.value?.find((role) => role.id === row)?.name,
},
]);
@ -102,7 +106,7 @@ async function getMyRoleRole(roles) {
>
<template #more-create-dialog="{ data }">
<QTable
v-if="data.role && suggestions.length > 0"
v-if="data.roleFk && suggestions.length > 0"
:rows="suggestions"
:columns="suggestionColumns"
/>
@ -111,5 +115,6 @@ async function getMyRoleRole(roles) {
</template>
<i18n>
es:
Include your roles: Inluyen tus roles
Suggestion for role change: Sugerencia de cambio de rol
Add Privileges: Añadir privilegios
</i18n>