diff --git a/src/resources/js/components/BadasoContentAddField.vue b/src/resources/js/components/BadasoContentAddField.vue index cdf2653..994bd95 100644 --- a/src/resources/js/components/BadasoContentAddField.vue +++ b/src/resources/js/components/BadasoContentAddField.vue @@ -14,7 +14,11 @@ :placeholder="$t('content.fill.field.addField.name.placeholder')" v-model="field.name" size="12" - :alert="$v.field.name.$error ? $t('vuelidate.required', [ $t('content.fill.field.addField.name.title')]) : ''" + :alert="$v.field.type.$error ? [ + $v.field.name.required ? '' : $t('vuelidate.required', [ $t('content.fill.field.addField.name.title')]), + $v.field.name.alphaNum ? '' : $t('vuelidate.alphaNum', [ $t('content.fill.field.addField.name.title')]), + $v.field.name.nonNumericOnFirstChar ? '' : $t('vuelidate.nonNumericOnFirstChar'), + ] : ''" > @@ -42,10 +46,12 @@