Reduce validation to at least two chracaters when creating/editing Unit items

=Closes #6
This commit is contained in:
Darko Gjorgjijoski
2024-01-30 08:23:00 +02:00
parent 8e510d6d09
commit 24cf0f00fc
2 changed files with 4 additions and 4 deletions

View File

@@ -90,8 +90,8 @@ const rules = computed(() => {
name: {
required: helpers.withMessage(t('validation.required'), required),
minLength: helpers.withMessage(
t('validation.name_min_length', { count: 3 }),
minLength(3)
t('validation.name_min_length', { count: 2 }),
minLength(2)
),
},
}

View File

@@ -217,8 +217,8 @@ const rules = computed(() => {
name: {
required: helpers.withMessage(t('validation.required'), required),
minLength: helpers.withMessage(
t('validation.name_min_length', { count: 3 }),
minLength(3)
t('validation.name_min_length', { count: 2 }),
minLength(2)
),
},