mirror of
https://github.com/jellyfin/jellyfin-web
synced 2025-03-30 19:56:21 +00:00
Fix help message not displaying for mixed library type
This commit is contained in:
parent
fb090f239b
commit
11fdd8a487
1 changed files with 3 additions and 4 deletions
|
@ -87,12 +87,11 @@ import template from './mediaLibraryCreator.template.html';
|
||||||
if (index != -1) {
|
if (index != -1) {
|
||||||
const name = this.options[index].innerHTML.replace('*', '').replace('&', '&');
|
const name = this.options[index].innerHTML.replace('*', '').replace('&', '&');
|
||||||
$('#txtValue', dlg).val(name);
|
$('#txtValue', dlg).val(name);
|
||||||
const folderOption = collectionTypeOptions.filter(i => {
|
|
||||||
return i.value == value;
|
|
||||||
})[0];
|
|
||||||
$('.collectionTypeFieldDescription', dlg).html(folderOption.message || '');
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
const folderOption = collectionTypeOptions.find(i => i.value === value);
|
||||||
|
$('.collectionTypeFieldDescription', dlg).html(folderOption?.message || '');
|
||||||
});
|
});
|
||||||
page.querySelector('.btnAddFolder').addEventListener('click', onAddButtonClick);
|
page.querySelector('.btnAddFolder').addEventListener('click', onAddButtonClick);
|
||||||
page.querySelector('.btnSubmit').addEventListener('click', onAddLibrary);
|
page.querySelector('.btnSubmit').addEventListener('click', onAddLibrary);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue