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 (#3170)
  • Loading branch information
DL6ER authored Nov 22, 2024
2 parents d5d5138 + 664e2da commit 47e977a
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 47e977a

Please sign in to comment.