mirror of
https://github.com/jellyfin/jellyfin-web
synced 2025-03-30 19:56:21 +00:00
Merge pull request #3694 from crobibero/disable-splashscreen
Add the ability to enable/disable the splashscreen
This commit is contained in:
commit
0bd774dd45
3 changed files with 10 additions and 1 deletions
|
@ -72,6 +72,12 @@
|
|||
<textarea is="emby-textarea" id="txtCustomCss" label="${LabelCustomCss}" class="textarea-mono"></textarea>
|
||||
<div class="fieldDescription">${LabelCustomCssHelp}</div>
|
||||
</div>
|
||||
<div class="checkboxList paperList" style="padding:.5em 1em;">
|
||||
<label>
|
||||
<input type="checkbox" is="emby-checkbox" id="chkSplashScreenAvailable" />
|
||||
<span>${EnableSplashScreen}</span>
|
||||
</label>
|
||||
</div>
|
||||
</div>
|
||||
<br />
|
||||
<div>
|
||||
|
|
|
@ -15,6 +15,7 @@ import alert from '../../components/alert';
|
|||
page.querySelector('#txtServerName').value = systemInfo.ServerName;
|
||||
page.querySelector('#txtCachePath').value = systemInfo.CachePath || '';
|
||||
page.querySelector('#chkQuickConnectAvailable').checked = config.QuickConnectAvailable === true;
|
||||
page.querySelector('#chkSplashScreenAvailable').checked = config.SplashscreenEnabled === true;
|
||||
$('#txtMetadataPath', page).val(systemInfo.InternalMetadataPath || '');
|
||||
$('#txtMetadataNetworkPath', page).val(systemInfo.MetadataNetworkPath || '');
|
||||
$('#selectLocalizationLanguage', page).html(languageOptions.map(function (language) {
|
||||
|
@ -39,6 +40,7 @@ import alert from '../../components/alert';
|
|||
ApiClient.getNamedConfiguration(brandingConfigKey).then(function(brandingConfig) {
|
||||
brandingConfig.LoginDisclaimer = form.querySelector('#txtLoginDisclaimer').value;
|
||||
brandingConfig.CustomCss = form.querySelector('#txtCustomCss').value;
|
||||
brandingConfig.SplashscreenEnabled = form.querySelector('#chkSplashScreenAvailable').checked;
|
||||
|
||||
ApiClient.updateNamedConfiguration(brandingConfigKey, brandingConfig).then(function () {
|
||||
Dashboard.processServerConfigurationUpdateResult();
|
||||
|
|
|
@ -1642,5 +1642,6 @@
|
|||
"Scene": "Scene",
|
||||
"Sample": "Sample",
|
||||
"ThemeSong": "Theme Song",
|
||||
"ThemeVideo": "Theme Video"
|
||||
"ThemeVideo": "Theme Video",
|
||||
"EnableSplashScreen": "Enable the splash screen"
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue