From e66d6608dec3009c7829ffb5e358b9748d7b3a45 Mon Sep 17 00:00:00 2001 From: Vincent Auger Date: Mon, 2 Dec 2024 16:13:20 -0400 Subject: [PATCH] refactor: reflect change of max char in front end --- .../AuthorEmployment/components/AddAuthorEmploymentDialog.vue | 4 ++-- .../components/EditAuthorEmploymentDialog.vue | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/resources/src/models/AuthorEmployment/components/AddAuthorEmploymentDialog.vue b/resources/src/models/AuthorEmployment/components/AddAuthorEmploymentDialog.vue index 6eb88992..b1eb5ec8 100644 --- a/resources/src/models/AuthorEmployment/components/AddAuthorEmploymentDialog.vue +++ b/resources/src/models/AuthorEmployment/components/AddAuthorEmploymentDialog.vue @@ -65,7 +65,7 @@ async function createAuthorEmployment() { :label="t('orcid-employment-edit.role-title')" outlined :rules="[(val: string|null) => !!val || t('common.required'), - (val: string) => val.length <= 50 || t('common.validation.must-be-less-than-x-characters', [50]), + (val: string) => val.length <= 255 || t('common.validation.must-be-less-than-x-characters', [255]), ]" class="q-mb-md" /> @@ -74,7 +74,7 @@ async function createAuthorEmployment() { :label="t('orcid-employment-edit.department-name')" outlined :rules="[(val: string|null) => !!val || t('common.required'), - (val: string) => val.length <= 50 || t('common.validation.must-be-less-than-x-characters', [50]), + (val: string) => val.length <= 255 || t('common.validation.must-be-less-than-x-characters', [255]), ]" class="q-mb-md" :hint="t('orcid-employment-edit.department-name-hint')" diff --git a/resources/src/models/AuthorEmployment/components/EditAuthorEmploymentDialog.vue b/resources/src/models/AuthorEmployment/components/EditAuthorEmploymentDialog.vue index d590de36..a315aab6 100644 --- a/resources/src/models/AuthorEmployment/components/EditAuthorEmploymentDialog.vue +++ b/resources/src/models/AuthorEmployment/components/EditAuthorEmploymentDialog.vue @@ -78,7 +78,7 @@ function deleteAuthorEmployment() { :label="t('orcid-employment-edit.role-title')" outlined :rules="[(val: string|null) => !!val || t('common.required'), - (val: string) => val.length <= 50 || t('common.validation.must-be-less-than-x-characters', [50]), + (val: string) => val.length <= 255 || t('common.validation.must-be-less-than-x-characters', [255]), ]" class="q-mb-md" /> @@ -87,7 +87,7 @@ function deleteAuthorEmployment() { :label="t('orcid-employment-edit.department-name')" outlined :rules="[(val: string|null) => !!val || t('common.required'), - (val: string) => val.length <= 50 || t('common.validation.must-be-less-than-x-characters', [50]), + (val: string) => val.length <= 255 || t('common.validation.must-be-less-than-x-characters', [255]), ]" class="q-mb-md" :hint="t('orcid-employment-edit.department-name-hint')"