mirror of
https://github.com/jellyfin/jellyfin-web
synced 2025-03-30 19:56:21 +00:00
using toggle instead of if else
Signed-off-by: Petrus.Z <silencly07@gmail.com>
This commit is contained in:
parent
29483abc62
commit
562fd6887a
1 changed files with 2 additions and 5 deletions
|
@ -410,11 +410,8 @@ import template from './libraryoptionseditor.template.html';
|
|||
} else {
|
||||
parent.querySelector('.chkEnableEmbeddedEpisodeInfosContainer').classList.add('hide');
|
||||
}
|
||||
if (contentType === 'movies') {
|
||||
parent.querySelector('.chkAutoCollectionContainer').classList.remove('hide');
|
||||
} else {
|
||||
parent.querySelector('.chkAutoCollectionContainer').classList.add('hide');
|
||||
}
|
||||
|
||||
parent.querySelector('.chkAutoCollectionContainer').classList.toggle('hide', contentType !== 'movies');
|
||||
|
||||
return populateMetadataSettings(parent, contentType);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue