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

add setting to hide external content from suggestions

This commit is contained in:
Luke Pulverenti 2016-08-31 17:07:02 -04:00
parent 218112efc1
commit 3fe335618d
3 changed files with 13 additions and 1 deletions

View file

@ -37,6 +37,7 @@
config.DisplaySpecialsWithinSeasons = form.querySelector('.chkDisplaySpecialsWithinSeasons').checked;
config.DisplayCollectionsView = form.querySelector('.chkDisplayCollectionView').checked;
config.EnableChannelView = !form.querySelector('.chkDisplayChannelsInline').checked;
config.EnableExternalContentInSuggestions = form.querySelector('.chkExternalContentInSuggestions').checked;
ApiClient.updateServerConfiguration(config).then(Dashboard.processServerConfigurationUpdateResult);
});
@ -52,6 +53,7 @@
view.querySelector('.chkDisplaySpecialsWithinSeasons').checked = config.DisplaySpecialsWithinSeasons;
view.querySelector('.chkDisplayCollectionView').checked = config.DisplayCollectionsView;
view.querySelector('.chkDisplayChannelsInline').checked = !(config.EnableChannelView || false);
view.querySelector('.chkExternalContentInSuggestions').checked = config.EnableExternalContentInSuggestions;
});
}