mirror of
https://github.com/jellyfin/jellyfin-web.git
synced 2024-11-17 10:58:20 -07:00
using toggle instead of if else
Signed-off-by: Petrus.Z <silencly07@gmail.com>
This commit is contained in:
parent
29483abc62
commit
562fd6887a
@ -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…
Reference in New Issue
Block a user