From 664e2dac3db86737dc65182cb1e1c89d31c1aea9 Mon Sep 17 00:00:00 2001 From: yubiuser Date: Fri, 1 Nov 2024 21:53:33 +0100 Subject: [PATCH] Display update information of individual components only if we are not running in a Docker container Signed-off-by: yubiuser --- scripts/js/footer.js | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/scripts/js/footer.js b/scripts/js/footer.js index 7a98c0f21..f34abe316 100644 --- a/scripts/js/footer.js +++ b/scripts/js/footer.js @@ -479,6 +479,7 @@ function updateVersionInfo() { var version = data.version; var updateAvailable = false; var dockerUpdate = false; + var isDocker = false; $("#versions").empty(); var versions = [ @@ -519,6 +520,11 @@ function updateVersionInfo() { }, ]; + // Check if we are running in a Docker container + if (version.docker.local !== null) { + isDocker = true; + } + versions.forEach(function (v) { if (v.local !== null) { // reset update status for each component @@ -556,7 +562,8 @@ function updateVersionInfo() { dockerUpdate = true; } - if (updateComponentAvailable) { + // Display update information of individual components only if we are not running in a Docker container + if ((!isDocker || (isDocker && v.name === "Docker Tag")) && updateComponentAvailable) { $("#versions").append( "
  • " + v.name +