[ACS-6085] user is not prevented from renaming library to name containing only spaces (#3476)

* ACS-6085 Prevent user from renaming library to name containing only spaces

* ACS-6085 Trimmed value

* ACS-6085 Unit tests for titleErrorTranslationKey and update function

* ACS-6085 Unit tests

* ACS-6085 Removed redundant code

* ACS-6085 Set type for validateEmptyName function

* ACS-6085 Rename error translation key for required error

* ACS-6085 Empty commit
This commit is contained in:
AleksanderSklorz
2023-10-16 23:29:19 +02:00
committed by GitHub
parent 928c6b5731
commit 686e6c9dbb
4 changed files with 92 additions and 7 deletions

View File

@@ -488,7 +488,7 @@
"CONFLICT": "This Library ID is already used. Check the trashcan.",
"ID_TOO_LONG": "Use 72 characters or less for the URL name",
"DESCRIPTION_TOO_LONG": "Use 512 characters or less for description",
"TITLE_TOO_LONG": "Use 256 characters or less for title",
"TITLE_TOO_LONG_OR_MISSING": "Use 256 characters or less for title",
"ILLEGAL_CHARACTERS": "Use numbers and letters only",
"ONLY_SPACES": "Library name can't contain only spaces",
"LIBRARY_UPDATE_ERROR": "There was an error updating library properties"