Browse Source

Add validation rules for label creation

pull/1222/head
Hironsan 3 years ago
parent
commit
556d4cbb27
1 changed files with 5 additions and 1 deletions
  1. 6
      frontend/i18n/en/rules.js

6
frontend/i18n/en/rules.js

@ -4,7 +4,11 @@ export default {
}, },
labelNameRules: { labelNameRules: {
labelRequired: 'Label name is required', labelRequired: 'Label name is required',
labelLessThan30Chars: 'Label name must be less than 30 characters'
labelLessThan30Chars: 'Label name must be less than 30 characters',
duplicated: 'The label name is already used.'
},
keyNameRules: {
duplicated: 'The key is already used.'
}, },
userNameRules: { userNameRules: {
userNameRequired: 'User name is required', userNameRequired: 'User name is required',

Loading…
Cancel
Save