Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Display update information of individual components only if we are not running in a Docker container #3170

Merged
merged 1 commit into from
Nov 22, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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) {
DL6ER marked this conversation as resolved.
Show resolved Hide resolved
$("#versions").append(
"<li><strong>" +
v.name +
Expand Down