mirror of
https://github.com/jellyfin/jellyfin-web
synced 2025-03-30 19:56:21 +00:00
Change LibraryOption to match backend
Changed "disable" to "enable" to match backend. It makes more sense to have it be "enable" because that's what the checkbox says. Now no weird "not" logic is needed to send options to the backend.
This commit is contained in:
parent
60fc2c72b2
commit
9ab45c43ad
2 changed files with 3 additions and 3 deletions
|
@ -511,7 +511,7 @@ function setImageOptionsIntoOptions(options) {
|
|||
|
||||
export function getLibraryOptions(parent) {
|
||||
const options = {
|
||||
Disabled: !parent.querySelector('.chkEnabled').checked,
|
||||
Enabled: parent.querySelector('.chkEnabled').checked,
|
||||
EnableArchiveMediaFiles: false,
|
||||
EnablePhotos: parent.querySelector('.chkEnablePhotos').checked,
|
||||
EnableRealtimeMonitor: parent.querySelector('.chkEnableRealtimeMonitor').checked,
|
||||
|
@ -575,7 +575,7 @@ export function setLibraryOptions(parent, options) {
|
|||
parent.querySelector('#selectCountry').value = options.MetadataCountryCode || '';
|
||||
parent.querySelector('#selectAutoRefreshInterval').value = options.AutomaticRefreshIntervalDays || '0';
|
||||
parent.querySelector('#txtSeasonZeroName').value = options.SeasonZeroDisplayName || 'Specials';
|
||||
parent.querySelector('.chkEnabled').checked = !options.Disabled;
|
||||
parent.querySelector('.chkEnabled').checked = options.Enabled;
|
||||
parent.querySelector('.chkEnablePhotos').checked = options.EnablePhotos;
|
||||
parent.querySelector('.chkEnableRealtimeMonitor').checked = options.EnableRealtimeMonitor;
|
||||
parent.querySelector('.chkEnableLUFSScan').checked = options.EnableLUFSScan;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue