change args visibility when editing a default role (#8322)

This commit is contained in:
Gabriel Pordeus Santos 2023-12-07 08:12:14 -03:00 committed by GitHub
parent 371ad9f55b
commit 22a4464c67
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -53,7 +53,7 @@ export default {
icon: 'edit-outlined', icon: 'edit-outlined',
label: 'label.edit.role', label: 'label.edit.role',
dataView: true, dataView: true,
args: ['name', 'description', 'type', 'ispublic'], args: (record) => record.isdefault ? ['ispublic'] : ['name', 'description', 'type', 'ispublic'],
mapping: { mapping: {
type: { type: {
options: ['Admin', 'DomainAdmin', 'User'] options: ['Admin', 'DomainAdmin', 'User']