mirror of
https://github.com/jellyfin/jellyfin-web
synced 2025-03-30 19:56:21 +00:00
Merge pull request #5215 from btopherjohnson/EnableLibrary
This commit is contained in:
commit
ae2a2fa6fa
4 changed files with 13 additions and 0 deletions
|
@ -79,6 +79,7 @@
|
|||
- [Kevin Tan (Valius)](https://github.com/valius)
|
||||
- [Rasmus Krämer](https://github.com/rasmuslos)
|
||||
- [ntarelix](https://github.com/ntarelix)
|
||||
- [btopherjohnson](https://github.com/btopherjohnson)
|
||||
- [András Maróy](https://github.com/andrasmaroy)
|
||||
- [Chris-Codes-It](https://github.com/Chris-Codes-It)
|
||||
- [Vedant](https://github.com/viktory36)
|
||||
|
|
|
@ -515,6 +515,7 @@ function setImageOptionsIntoOptions(options) {
|
|||
|
||||
export function getLibraryOptions(parent) {
|
||||
const options = {
|
||||
Enabled: parent.querySelector('.chkEnabled').checked,
|
||||
EnableArchiveMediaFiles: false,
|
||||
EnablePhotos: parent.querySelector('.chkEnablePhotos').checked,
|
||||
EnableRealtimeMonitor: parent.querySelector('.chkEnableRealtimeMonitor').checked,
|
||||
|
@ -581,6 +582,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.Enabled;
|
||||
parent.querySelector('.chkEnablePhotos').checked = options.EnablePhotos;
|
||||
parent.querySelector('.chkEnableRealtimeMonitor').checked = options.EnableRealtimeMonitor;
|
||||
parent.querySelector('.chkEnableLUFSScan').checked = options.EnableLUFSScan;
|
||||
|
|
|
@ -1,4 +1,12 @@
|
|||
<h2>${HeaderLibrarySettings}</h2>
|
||||
<div class="checkboxContainer checkboxContainer-withDescription chkEnabledContainer">
|
||||
<label>
|
||||
<input type="checkbox" is="emby-checkbox" class="chkEnabled" checked />
|
||||
<span>${EnableLibrary}</span>
|
||||
</label>
|
||||
<div class="fieldDescription checkboxFieldDescription">${EnableLibraryHelp}</div>
|
||||
</div>
|
||||
|
||||
<div class="selectContainer fldMetadataLanguage hide">
|
||||
<select is="emby-select" id="selectLanguage" label="${LabelMetadataDownloadLanguage}"></select>
|
||||
</div>
|
||||
|
|
|
@ -249,6 +249,8 @@
|
|||
"EnableFasterAnimations": "Faster animations",
|
||||
"EnableFasterAnimationsHelp": "Use faster animations and transitions.",
|
||||
"EnableHardwareEncoding": "Enable hardware encoding",
|
||||
"EnableLibrary": "Enable the library",
|
||||
"EnableLibraryHelp": "Disabling the library will hide it from all user views.",
|
||||
"EnableNextVideoInfoOverlay": "Show next video info during playback",
|
||||
"EnableNextVideoInfoOverlayHelp": "At the end of a video, display info about the next video coming up in the current playlist.",
|
||||
"EnablePhotos": "Display the photos",
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue