1
0
Fork 0
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:
Bill Thornton 2024-03-31 23:16:36 -04:00 committed by GitHub
commit ae2a2fa6fa
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
4 changed files with 13 additions and 0 deletions

View file

@ -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)

View file

@ -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;

View file

@ -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>

View file

@ -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",