Expose collection generation options for mixed libraries

Pass "mixed" instead of "" for library type "Other"
This commit is contained in:
Joe Rogers 2022-01-11 22:28:18 +01:00
parent b0bb836ec7
commit 71d4eeadba
No known key found for this signature in database
GPG key ID: 0074AD57B8FDBBB4
2 changed files with 2 additions and 2 deletions

View file

@ -411,7 +411,7 @@ import template from './libraryoptionseditor.template.html';
parent.querySelector('.chkEnableEmbeddedEpisodeInfosContainer').classList.add('hide'); parent.querySelector('.chkEnableEmbeddedEpisodeInfosContainer').classList.add('hide');
} }
parent.querySelector('.chkAutomaticallyAddToCollectionContainer').classList.toggle('hide', contentType !== 'movies'); parent.querySelector('.chkAutomaticallyAddToCollectionContainer').classList.toggle('hide', contentType !== 'movies' && contentType !== 'mixed');
return populateMetadataSettings(parent, contentType); return populateMetadataSettings(parent, contentType);
} }

View file

@ -73,7 +73,7 @@ import template from './mediaLibraryCreator.template.html';
$('#selectCollectionType', page).html(getCollectionTypeOptionsHtml(collectionTypeOptions)).val('').on('change', function () { $('#selectCollectionType', page).html(getCollectionTypeOptionsHtml(collectionTypeOptions)).val('').on('change', function () {
const value = this.value; const value = this.value;
const dlg = $(this).parents('.dialog')[0]; const dlg = $(this).parents('.dialog')[0];
libraryoptionseditor.setContentType(dlg.querySelector('.libraryOptions'), value == 'mixed' ? '' : value); libraryoptionseditor.setContentType(dlg.querySelector('.libraryOptions'), value);
if (value) { if (value) {
dlg.querySelector('.libraryOptions').classList.remove('hide'); dlg.querySelector('.libraryOptions').classList.remove('hide');