From c1865573d570f84146ae1f9678fb512511b0a384 Mon Sep 17 00:00:00 2001 From: Bill Thornton Date: Tue, 14 Jun 2022 10:28:33 -0400 Subject: [PATCH] Merge pull request #3694 from crobibero/disable-splashscreen Add the ability to enable/disable the splashscreen (cherry picked from commit 0bd774dd45e4af30f15f1a003b23c635e02711cd) Signed-off-by: crobibero --- src/controllers/dashboard/general.html | 6 ++++++ src/controllers/dashboard/general.js | 2 ++ src/strings/en-us.json | 3 ++- 3 files changed, 10 insertions(+), 1 deletion(-) diff --git a/src/controllers/dashboard/general.html b/src/controllers/dashboard/general.html index 8c228fd069..53a22036e3 100644 --- a/src/controllers/dashboard/general.html +++ b/src/controllers/dashboard/general.html @@ -72,6 +72,12 @@
${LabelCustomCssHelp}
+
+ +

diff --git a/src/controllers/dashboard/general.js b/src/controllers/dashboard/general.js index 80114b0657..a9fd39e9df 100644 --- a/src/controllers/dashboard/general.js +++ b/src/controllers/dashboard/general.js @@ -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(); diff --git a/src/strings/en-us.json b/src/strings/en-us.json index b7d58832d3..baadda44bc 100644 --- a/src/strings/en-us.json +++ b/src/strings/en-us.json @@ -1642,5 +1642,6 @@ "Sample": "Sample", "ThemeSong": "Theme Song", "ThemeVideo": "Theme Video", - "EnableEnhancedNvdecDecoderHelp": "Experimental NVDEC implementation, do not enable this option unless you encounter decoding errors." + "EnableEnhancedNvdecDecoderHelp": "Experimental NVDEC implementation, do not enable this option unless you encounter decoding errors.", + "EnableSplashScreen": "Enable the splash screen" }