1
0
Fork 0
mirror of https://github.com/jellyfin/jellyfin-web synced 2025-03-30 19:56:21 +00:00

Merge pull request #6547 from thornbill/trim-lib-name

This commit is contained in:
Bill Thornton 2025-02-21 01:14:42 -05:00 committed by GitHub
commit ade0204024
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 3 additions and 3 deletions

View file

@ -42,10 +42,10 @@ function onAddLibrary(e) {
isCreating = true;
loading.show();
const dlg = dom.parentWithClass(this, 'dlg-librarycreator');
const name = dlg.querySelector('#txtValue').value;
const name = dlg.querySelector('#txtValue').value.trim();
let type = dlg.querySelector('#selectCollectionType').value;
if (name.length == 0 || name.trim().length !== name.length) {
if (name.length === 0) {
alert({
text: globalize.translate('LibraryNameInvalid'),
type: 'error'