Skip to content

Commit

Permalink
Display update information of individual components only if we are no…
Browse files Browse the repository at this point in the history
…t running in a Docker container

Signed-off-by: yubiuser <[email protected]>
  • Loading branch information
yubiuser committed Nov 1, 2024
1 parent c689fdc commit 664e2da
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion scripts/js/footer.js
Original file line number Diff line number Diff line change
Expand Up @@ -479,6 +479,7 @@ function updateVersionInfo() {
var version = data.version;
var updateAvailable = false;
var dockerUpdate = false;
var isDocker = false;
$("#versions").empty();

var versions = [
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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(
"<li><strong>" +
v.name +
Expand Down

0 comments on commit 664e2da

Please sign in to comment.