Skip to content

Commit

Permalink
chore: add input limiters section to settings and update limit option…
Browse files Browse the repository at this point in the history
…s descriptions
  • Loading branch information
nshenderov committed Dec 12, 2024
1 parent 8eba6b7 commit a83228c
Showing 1 changed file with 18 additions and 15 deletions.
33 changes: 18 additions & 15 deletions admin/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -70,34 +70,37 @@ export default {
],
advanced: [
{
sectionTitle: null,
name: 'required',
type: 'checkbox',
intlLabel: {
id: `${PLUGIN_ID}.required.label`,
defaultMessage: 'Required field',
},
description: {
id: `${PLUGIN_ID}.required.description`,
defaultMessage: "You won't be able to create an entry if this field is empty",
},
},
{
sectionTitle: {
id: `${PLUGIN_ID}.options.advanced.limiters`,
defaultMessage: 'Input limiters',
},
items: [
{
name: 'required',
type: 'checkbox',
intlLabel: {
id: `${PLUGIN_ID}.required.label`,
defaultMessage: 'Required field',
},
description: {
id: `${PLUGIN_ID}.required.description`,
defaultMessage: "You won't be able to create an entry if this field is empty",
},
},
{
name: 'options.maxLengthWords',
type: 'checkbox-with-number-field',
intlLabel: {
id: `${PLUGIN_ID}.maxLengthWords.label`,
defaultMessage: 'Maximum words',
defaultMessage: 'Words limit',
},
},
{
name: 'options.maxLengthCharacters',
type: 'checkbox-with-number-field',
intlLabel: {
id: `${PLUGIN_ID}.maxLengthCharacters.label`,
defaultMessage: 'Maximum characters',
defaultMessage: 'Characters limit',
},
},
],
Expand Down

0 comments on commit a83228c

Please sign in to comment.