From 9c264100406c0be1f93051089fd427e4d1d22c72 Mon Sep 17 00:00:00 2001 From: Danny Atthaya Date: Wed, 23 Jun 2021 10:47:03 +0700 Subject: [PATCH] Add draggable --- .../js/components/BadasoContentAddField.vue | 12 ++++- src/resources/js/lang/modules/en.js | 3 ++ src/resources/js/lang/modules/id.js | 3 ++ src/resources/js/pages/content/add.vue | 53 +++++++++++++++++++ src/resources/js/pages/content/edit.vue | 53 +++++++++++++++++++ 5 files changed, 122 insertions(+), 2 deletions(-) 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 @@