Skip to content

Commit

Permalink
refactor: reflect change of max char in front end
Browse files Browse the repository at this point in the history
  • Loading branch information
vincentauger committed Dec 2, 2024
1 parent 325cca9 commit e66d660
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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"
/>
Expand All @@ -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')"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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"
/>
Expand All @@ -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')"
Expand Down

0 comments on commit e66d660

Please sign in to comment.