adds admin: { } options to fields, allows for field disabling
This commit is contained in:
@@ -3,13 +3,17 @@ module.exports = [
|
||||
name: 'enableAPIKey',
|
||||
type: 'checkbox',
|
||||
defaultValue: false,
|
||||
hidden: 'admin',
|
||||
admin: {
|
||||
disable: true,
|
||||
},
|
||||
},
|
||||
{
|
||||
name: 'apiKey',
|
||||
type: 'text',
|
||||
minLength: 24,
|
||||
maxLength: 48,
|
||||
hidden: 'admin',
|
||||
admin: {
|
||||
disable: true,
|
||||
},
|
||||
},
|
||||
];
|
||||
|
||||
@@ -6,16 +6,22 @@ module.exports = [
|
||||
label: 'Email',
|
||||
type: 'email',
|
||||
validate: validations.email,
|
||||
hidden: 'admin',
|
||||
admin: {
|
||||
disable: true,
|
||||
},
|
||||
},
|
||||
{
|
||||
name: 'resetPasswordToken',
|
||||
type: 'text',
|
||||
hidden: true,
|
||||
admin: {
|
||||
disable: true,
|
||||
},
|
||||
},
|
||||
{
|
||||
name: 'resetPasswordExpiration',
|
||||
type: 'date',
|
||||
hidden: true,
|
||||
admin: {
|
||||
disable: true,
|
||||
},
|
||||
},
|
||||
];
|
||||
|
||||
Reference in New Issue
Block a user