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:
@@ -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;
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
<h2>${HeaderLibrarySettings}</h2>
|
||||
<div class="checkboxContainer checkboxContainer-withDescription chkEnable">
|
||||
<div class="checkboxContainer checkboxContainer-withDescription chkEnabledContainer">
|
||||
<label>
|
||||
<input type="checkbox" is="emby-checkbox" class="chkEnabled" checked />
|
||||
<span>${EnableLibrary}</span>
|
||||
|
||||
Reference in New Issue
Block a user